worley

Implementation of cellular noise (Worley noise) by Stefan Gustavson.

Sample the 2D/3D Worley noise at position p

glsl vec2 worleyNoise(vec2 p);
glsl vec2 worleyNoise(vec3 p);

Sample the periodic 2D Worley noise with whole number period at position p. Change origin to get a different pattern

glsl vec2 worleyNoise(vec2 p, vec2 period, vec2 origin);