voxolith
API reference@voxolith/gen-terrainInterfaces

RiverParams

The river: a channel along a slow noise contour, carving its own valley. Lengths in voxels.

Defined in: index.ts:25

Properties

PropertyTypeDescriptionDefined in
banksnumberWidth of the sloping banks either side.index.ts:33
depthnumberDepth below the water level at the centre of the channel.index.ts:31
enabledbooleanCarve a river at all.index.ts:27
meandernumberDistance over which the river swings from one side to the other.index.ts:35
widthnumberChannel width in voxels.index.ts:29
widthScale?numberDistance over which the width changes, in voxels.index.ts:42
widthVariation?numberHow much the width varies along the river, 0 (constant) .. 1 (from a trickle to about twice as wide). Wide stretches are deeper too.index.ts:40

On this page