Table of Contents

Class FastNoiseLiteField

Namespace
Shard.WorldGen.Noise
Assembly
Shard.WorldGen.dll

The single NoiseField adapter over FastNoiseLite — lets any FNL config (cellular, OpenSimplex2, perlin, value, fractal) feed the graph's noise density nodes, with an optional separate domain-warp instance. One configurable adapter rather than a per-noise-type class; the FNL instances are read-only after setup, so a field is safe to share across generation threads.

public sealed class FastNoiseLiteField : NoiseField
Inheritance
FastNoiseLiteField
Inherited Members

Constructors

FastNoiseLiteField(FastNoiseLite, FastNoiseLite?)

The single NoiseField adapter over FastNoiseLite — lets any FNL config (cellular, OpenSimplex2, perlin, value, fractal) feed the graph's noise density nodes, with an optional separate domain-warp instance. One configurable adapter rather than a per-noise-type class; the FNL instances are read-only after setup, so a field is safe to share across generation threads.

public FastNoiseLiteField(FastNoiseLite noise, FastNoiseLite? warp = null)

Parameters

noise FastNoiseLite
warp FastNoiseLite

Methods

Cellular(int, int, CellularReturnType, double, double?, double?)

Cellular (Voronoi) noise field, optionally domain-warped (a separate warp instance gives it its own frequency, mirroring the upstream CellNoiseField). FBm fractal, Euclidean distance.

public static FastNoiseLiteField Cellular(int seed, int octaves, FastNoiseLite.CellularReturnType returnType, double jitter, double? warpAmount = null, double? warpScale = null)

Parameters

seed int
octaves int
returnType FastNoiseLite.CellularReturnType
jitter double
warpAmount double?
warpScale double?

Returns

FastNoiseLiteField

ValueAt(double)

public override double ValueAt(double x)

Parameters

x double

Returns

double

ValueAt(double, double)

2D sample over the horizontal plane (x, z).

public override double ValueAt(double x, double z)

Parameters

x double
z double

Returns

double

ValueAt(double, double, double)

public override double ValueAt(double x, double y, double z)

Parameters

x double
y double
z double

Returns

double

ValueAt(double, double, double, double)

public override double ValueAt(double x, double y, double z, double w)

Parameters

x double
y double
z double
w double

Returns

double