cloneParams()
Deep clone, so presets are never mutated by a caller.
function cloneParams(p: GrassParams): GrassParams;Defined in: grass/src/params.ts:81
Parameters
| Parameter | Type |
|---|---|
p | GrassParams |
Returns
buildRoles()
The patch's role table in voxel-value order, coloured from colors (usually skinFor); a role colors leaves out shows magenta.
generateGrass()
Generate a patch of ground cover: tufts scattered evenly over a disc, each fanning blades out of the ground that arc over under their own weight, shaded dark to light from base to tip, with optional flower or seed heads and snow. Blades are independent pieces; any voxel that does not reach the...