Skip to content

@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 ​

PropertyTypeDescriptionDefined in
layernumber-terrain/heightfield.ts:40
minHeight?number-terrain/heightfield.ts:41
maxHeight?number-terrain/heightfield.ts:42
minSlope?numberDegrees from flat.terrain/heightfield.ts:44
maxSlope?number-terrain/heightfield.ts:45
blend?numberMetres over which the rule fades in at its edges.terrain/heightfield.ts:47