Skip to content

Latest commit

 

History

History

glsl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

GLSL Clover Noise

Clover Noise is currently implemented in GLSL, for use in GLSL shaders. The code for 2D Clover Noise can be found here, and the 3D code can be found here.

Usage

GLSL Clover Noise is used as so:

// 2D
float value = clover_noise_2d(vec2 position);
float value = fractal_clover_noise_2d(vec2 position, int iterations); // iterations is capped at 10
vec2 curl = curl_clover_noise_2d(vec2 position);
vec2 curl = curl_fractal_clover_noise_2d(vec2 position, int iterations);  // iterations is capped at 10

// 3D
float value = clover_noise_3d(vec3 position);
float value = fractal_clover_noise_3d(vec3 position, int iterations); // iterations is capped at 10
vec3 curl = curl_clover_noise_3d(vec3 position);
vec3 curl = curl_fractal_clover_noise_3d(vec3 position, int iterations);  // iterations is capped at 10