voxolith
API reference@voxolith/gen-terrainInterfaces

TerrainInit

Everything a Terrain is rebuilt from, as plain data a worker can receive (postMessage structured-clones it; transfer heights.buffer to skip the copy). From terrainInit; rebuild with generateTerrain(init.params, init.seed, { heights: init.heights }).

Defined in: index.ts:120

Properties

PropertyTypeDescriptionDefined in
heightsInt16ArrayThe ground heights, edits (levelled pads) included.index.ts:126
paramsTerrainParamsComplete params, defaults filled in (the terrain's params).index.ts:122
seednumberThe seed the terrain was made with.index.ts:124

On this page