Vixen
02b45cc4
csharp
public readonly record struct TerrainNoise

The shape of the noise the Noise tool adds.

Read the guide page for this →

Remarks

Value noise rather than gradient noise, for the reason [docs/plan/26] gives for the camera's shake: the range of value noise is exactly the range of its lattice, so an amplitude declared as three metres never exceeds three metres. A gradient-noise peak is a number you look up and hope for, and an artist sculpting near a building cannot work with "three metres, except occasionally".

Fields and properties (6)

  • public int Octaves

    How many layers of detail.

  • public float Frequency

    How many samples one period of the coarsest octave spans, inverted.

  • public float Lacunarity

    How much finer each octave is than the last.

  • public float Gain

    How much quieter each octave is than the last.

  • public bool Ridged

    Whether to fold the noise about zero, which makes ridges instead of hills.

  • public uint Seed

    What the lattice derives from.

Methods (2)

  • public TerrainNoise(int Octaves = 4, float Frequency = 0.02, float Lacunarity = 2, float Gain = 0.5, bool Ridged = false, uint Seed = 2654435769)

    The shape of the noise the Noise tool adds.

  • public float At(int x, int z)

    The noise at a sample, in −1…1 — or 0…1 when Ridged.

Used by (5)

  • TerrainPaintVixen.Terrain
  • TerrainPaintTestsVixen.Terrain.Tests
  • TerrainSculptVixen.Terrain
  • TerrainSculptTestsVixen.Terrain.Tests
  • TerrainToolSettingsVixen.Editor.Terrain