Table of Contents

Class WhiteNoiseDensity

Namespace
Shard.WorldGen.Nodes
Assembly
Shard.WorldGen.dll

Per-cell white noise in [-1, 1]: an uncorrelated hashed value for each integer lattice cell. Upstream used an RngField + a fast LCG; Shard hashes (seed, ⌊x⌋, ⌊y⌋, ⌊z⌋) with splitmix64 mixing for a clean, self-contained, higher-quality result.

public sealed class WhiteNoiseDensity : Density
Inheritance
WhiteNoiseDensity
Inherited Members

Constructors

WhiteNoiseDensity(int)

Per-cell white noise in [-1, 1]: an uncorrelated hashed value for each integer lattice cell. Upstream used an RngField + a fast LCG; Shard hashes (seed, ⌊x⌋, ⌊y⌋, ⌊z⌋) with splitmix64 mixing for a clean, self-contained, higher-quality result.

public WhiteNoiseDensity(int seed)

Parameters

seed int

Methods

Process(Context)

public override double Process(Density.Context context)

Parameters

context Density.Context

Returns

double