voxolith
API reference@voxolith/gen-terrainInterfaces

FineTerrainInit

Everything a FineTerrain is rebuilt from, as structured-clonable data: the coarse terrain, the factor and the options, with the top override as data. From fineTerrainInit, rebuilt by fineTerrainFrom. Transfer terrain.heights.buffer and options.top.buffer to skip the copies; the init holds copies...

Defined in: init.ts:15

Everything a FineTerrain is rebuilt from, as structured-clonable data: the coarse terrain, the factor and the options, with the top override as data. From fineTerrainInit, rebuilt by fineTerrainFrom. Transfer terrain.heights.buffer and options.top.buffer to skip the copies; the init holds copies of its own.

Properties

PropertyTypeDescriptionDefined in
knumberFine voxels per coarse voxel.init.ts:19
optionsOmit<FineTerrainOptions, "top"> & objectThe refinement's options, top as a palette slot per coarse column (x + z * width).init.ts:21
terrainTerrainInitThe coarse terrain: params, seed and levelled heights.init.ts:17

On this page