Skip to content

API reference Obsidian.API.Noise

PerlinSimplexNoise class

Multi-octave 2D simplex noise (vanilla PerlinSimplexNoise), used for biome temperature variation: new PerlinSimplexNoise(new WorldgenRandom(new LegacyRandomSource(1234L)), [0]).

public sealed class PerlinSimplexNoise

In Obsidian.API.

Constructors

PerlinSimplexNoise(IRandomSource, IEnumerable<int>)

public PerlinSimplexNoise(IRandomSource random, IEnumerable<int> octaves);

Parameters

random
Source for octave 0 and the negative (lower-frequency) octaves.
octaves
Octaves to include; octave n samples at frequency 2^n.

Methods

GetValue(double, double, bool)

public double GetValue(double x, double y, bool useNoiseOffsets);

Samples the noise at (x, y). When useNoiseOffsets is set, each octave is shifted by its own random offset.

On this page