buildRoles()
The terrain's role table in voxel-value order, coloured from colors; WATER carries the water material, which the renderer animates. A role colors leaves out shows magenta.
function buildRoles(colors?: ColorSet): Role[];Defined in: roles.ts:56
Parameters
| Parameter | Type | Default value |
|---|---|---|
colors? | ColorSet | SUMMER |
Returns
Role[]
@voxolith/gen-terrain
@voxolith/gen-terrain: procedural voxel terrain.
completeTerrainParams()
Params with every default filled in, exactly as generateTerrain merges them: fields from DEFAULTTERRAIN under params, and river merged field by field. Idempotent, and always returns a fresh object (the river too), so the result can be edited or posted.