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
| Parameter | Type | Description |
|---|---|---|
terrain | Terrain | The (coarse) terrain the override is looked up on. |
top | TopOverride | Palette slot per column, 0 for none; must be an integer 0..255 (world voxels are 8-bit). |
Returns
Uint8Array
One slot per column.