LookParams
Which role each surface voxel gets; interior voxels stay the mid tone.
Defined in: params.ts:47
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
cracks | number | Crack density; 0 for none. | params.ts:57 |
lichen | number | Lichen patches on any face, 0..1. | params.ts:61 |
moss | number | Moss cover on upward faces, 0..1. | params.ts:59 |
mottle | number | Contrast between the light and dark tones, 0..1. | params.ts:49 |
snow | number | Snow on upward faces, 0..1. | params.ts:65 |
strata | number | Strata bands per rock height; 0 disables banding. | params.ts:51 |
strataContrast | number | Fraction of bands that take the contrasting colour. | params.ts:55 |
strataTiltDeg | number | Tilt of the bedding plane in degrees. | params.ts:53 |
wet | number | Height of the damp band at the base, as a fraction of height. | params.ts:63 |
skinFor()
Default role colours for a stone: its light, mid and dark tones, strata and cracks, a damp base mixed from them, and shared moss, lichen and snow. Unknown stones fall back to granite.
RockParams
Everything a rock is made from. Presets in PRESETS; the generators expose every field as a ParamSpec except the extras' size spread.