cloneParams()
Copy of the params, so presets are never mutated by a caller.
function cloneParams(p: RockParams): RockParams;Defined in: params.ts:80
Parameters
| Parameter | Type |
|---|---|
p | RockParams |
Returns
buildRoles()
The rock's role table in voxel-value order, coloured from colors (usually skinFor); a role colors leaves out shows magenta.
generateRock()
Generate a rock: a noise-displaced superellipsoid cleaved by fracture planes, with any extra rocks shaped the same way and tumbled against it so the piece stays connected, then a surface pass for tones, strata, cracks, moss, lichen, damp and snow. Pure and deterministic in its params and rng.