public readonly record struct TerrainNoiseThe shape of the noise the Noise tool adds.
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 OctavesHow many layers of detail.
public float FrequencyHow many samples one period of the coarsest octave spans, inverted.
public float LacunarityHow much finer each octave is than the last.
public float GainHow much quieter each octave is than the last.
public bool RidgedWhether to fold the noise about zero, which makes ridges instead of hills.
public uint SeedWhat 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