noise
static class in Unity.Mathematics · Unity.Mathematics
Gradient noise as in Ashima Arts' and Stefan Gustavson's webgl-noise (MIT; see Noise-LICENSE.txt), which the package ports: simplex noise (snoise), classic and periodic Perlin noise (cnoise, pnoise), Worley cellular noise (F1 and an approximate F2), and 2D flow noise with rotating gradients (psrnoise, srnoise and their derivatives). The lattice hash is the permutation polynomial (34x^2 + x) mod 289.
Methods 10
static float2 cellular(float2 P)static float2 cellular(float3 P)Distances to the nearest (x) and second nearest (y) feature points, over a 3x3 neighborhood.
3D cellular noise over a 3x3x3 neighborhood.
static float2 cellular2x2(float2 P)A faster cellular noise over a 2x2 neighborhood with less jitter.
static float2 cellular2x2x2(float3 P)A faster 3D cellular noise over a 2x2x2 neighborhood with less jitter.
static float cnoise(float2 P)static float cnoise(float3 P)static float cnoise(float4 P)static float pnoise(float2 P, float2 rep)static float pnoise(float3 P, float3 rep)static float pnoise(float4 P, float4 rep)static float3 psrdnoise(float2 pos, float2 per, float rot)static float3 psrdnoise(float2 pos, float2 per)static float psrnoise(float2 pos, float2 per, float rot)static float psrnoise(float2 pos, float2 per)static float snoise(float2 v)static float snoise(float3 v)static float snoise(float3 v, out float3 gradient)static float snoise(float4 v)static float3 srdnoise(float2 pos, float rot)static float3 srdnoise(float2 pos)static float srnoise(float2 pos, float rot)static float srnoise(float2 pos)Checked against Unity
Conformance scenarios that exercise it, recorded in Unity and compared event by event.