@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / TerrainPaintRule
Type Alias: TerrainPaintRule ​
ts
type TerrainPaintRule = {
layer: number;
minHeight?: number;
maxHeight?: number;
minSlope?: number;
maxSlope?: number;
blend?: number;
};Defined in: terrain/heightfield.ts:39
An automatic paint rule: a layer wins where height and slope fall in range.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
layer | number | - | terrain/heightfield.ts:40 |
minHeight? | number | - | terrain/heightfield.ts:41 |
maxHeight? | number | - | terrain/heightfield.ts:42 |
minSlope? | number | Degrees from flat. | terrain/heightfield.ts:44 |
maxSlope? | number | - | terrain/heightfield.ts:45 |
blend? | number | Metres over which the rule fades in at its edges. | terrain/heightfield.ts:47 |

