voxolith
API reference@voxolith/gen-terrainFunctions

topOverrideData()

A top override as data: top evaluated once on every column of terrain, into palette slots indexed x + z width. The result gives the same bricks as the function, in Terrain.fillBrick and FineTerrain.fillBrick (which look top up on coarse columns), and it crosses to a worker.

function topOverrideData(terrain: Terrain, top: TopOverride): Uint8Array;

Defined in: index.ts:465

Parameters

ParameterTypeDescription
terrainTerrainThe (coarse) terrain the override is looked up on.
topTopOverridePalette slot per column, 0 for none; must be an integer 0..255 (world voxels are 8-bit).

Returns

Uint8Array

One slot per column.

On this page