Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / TerrainNoise

Type Alias: TerrainNoise ​

ts
type TerrainNoise = {
  seed: number;
  amplitude: number;
  featureSize: number;
  octaves: number;
  ridged: number;
  flattenCenter: number;
};

Defined in: terrain/heightfield.ts:15

Properties ​

PropertyTypeDescriptionDefined in
seednumber-terrain/heightfield.ts:16
amplitudenumberMetres from the lowest valley to the highest peak, roughly.terrain/heightfield.ts:18
featureSizenumberSize of the biggest hills, in metres.terrain/heightfield.ts:20
octavesnumberLayers of detail on top (1 = smooth hills, 6 = rough).terrain/heightfield.ts:22
ridgednumber0 rolling hills, 1 sharp ridges.terrain/heightfield.ts:24
flattenCenternumberFlatten the middle into a play area this many metres across (0: no).terrain/heightfield.ts:26