perlin

Implementation of simplex Perlin noise by Ian McEwan and Stefan Gustavson.

Sample the 2D/3D/4D simplex Perlin noise at position p

glsl float perlinNoise(vec2 p);
glsl float perlinNoise(vec3 p);
glsl float perlinNoise(vec4 p);

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

glsl float perlinNoise(vec2 p, vec2 period, float rotation);