Sample the 1D noise field (a 2D slice at y = 0).
sample coordinate
noise value in the [-1, 1] range
Sample the 2D noise field at (x, y).
horizontal sample coordinate
vertical sample coordinate
noise value in the [-1, 1] range
Sample the 3D noise field at (x, y, z) — useful for animating a 2D field
by advancing z over time, or for volumetric/tiling effects.
sample coordinate
sample coordinate
sample coordinate
noise value in the [-1, 1] range
Re-seed the noise field. Same seed ⇒ same field.
the new seed value
this noise instance for chaining
Coherent value/gradient noise with fractal (fBm / ridged) layering.
Noiseis the renderer-free algorithm: a CPU-samplable field you can read directly with Noise#getNoise2d / Noise#getNoise3d for gameplay (heightmaps, terrain, spawn jitter, flow fields), or feed to a NoiseTexture2d to bake it into a drawable texture.Each sample returns a value in the
[-1, 1]range. The field is fully deterministic for a givenseed, so the same parameters always reproduce the same field.Example