Noise

noise has loads of helpful functions for generating noise.

Simplex noise

Perlin noise

Guassian noise

FBM noise

Voronoi noise


module noise
gaussian3( v: float3 ) -> float
gaussian2( v: float2 ) -> float
noise1( x: float ) -> float
noise2( x: float2 ) -> float
fmb1( x: float ) -> float
fbm2( x: float2 ) -> float
fbm3( x: float3 ) -> float
noise3( x: float3 ) -> float
simplex2( v: float2 ) -> float
perlin2( v: float2 ) -> float
perlin3( v: float3 ) -> float

Returns 3 values: distance to closest cell, random value of closest cell, distance to closest edge.

voronoi2( v: float2 ) -> float3
simplex3( v: float3 ) -> float
clone( ) -> noise