voxolith
API reference@voxolith/gen-terrainInterfaces

TerrainParams

Everything a terrain is made from. Lengths and heights are in voxels (10 per metre); every field has a default in DEFAULTTERRAIN.

Defined in: index.ts:49

Properties

PropertyTypeDescriptionDefined in
baseYnumberMean ground level.index.ts:57
colors?ColorSetRole colours; default SUMMER.index.ts:75
depthnumberExtent along z, in columns.index.ts:53
detailnumberSmall bumps, in voxels.index.ts:63
dryAbovenumberGround this far above baseY turns to dry grass.index.ts:73
featureSizenumberTypical hill size in voxels.index.ts:61
heightnumberGrid height; the ground stays well below it so trees fit.index.ts:55
reliefnumberHill amplitude: ground ranges about baseY ± relief.index.ts:59
riverRiverParamsThe river; merged field by field over the default.index.ts:67
rockSlopenumberHeight step to a neighbour at which ground turns to rock.index.ts:69
sandBandnumberVoxels above the water that are sand, near water.index.ts:71
waterLevelnumberAbsolute Y of the water surface; columns below it are flooded.index.ts:65
widthnumberExtent along x, in columns.index.ts:51

On this page