noise
VEX function
There are two forms of Perlin-style noise: a non-periodic noise which changes randomly throughout N-dimensional space, and a periodic form which repeats over a given range of space.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
See also: pnoise
-
float noise(float x) -
vector noise(float x) -
float noise(vector xyz) -
vector noise(vector xyz) -
float noise(vector4 xyzt) -
vector noise(vector4 xyzt) -
float noise(float x, float y) -
vector noise(float x, float y)
There are two forms of Perlin-style noise: a non-periodic noise which changes randomly throughout N-dimensional space, and a periodic form which repeats over a given range of space.
This function generates non-periodic noise. Use the pnoise function to generate periodic Perlin noise.
The various functions return the noise value at a 4D (vector4 argument), 3D (vector argument), 2D (two float arguments) or 1D (float argument) position. You can get a random float value or a vector of three random values.
The noise is in the range 0-1 with a median of 0.5. The distribution of the noise depends on the dimension, with higher dimensions approaching a Gaussian distribution of noise values.
See noise and randomness in the VEX language guide for more information.