GLSL

Simplex

Methods

# inner gln_sfbm(v, opts) → {float}

Generates 2D Fractional Brownian motion (fBm) from Simplex Noise.
Parameters:
Name Type Description
v vec2 Point to sample fBm at.
opts gln_tFBMOpts Options for generating Simplex Noise.
Value of fBm at point "p".
float
Example
gln_tFBMOpts opts =
     gln_tFBMOpts(uSeed, 0.3, 2.0, 0.5, 1.0, 5, false, false);

float n = gln_sfbm(position.xy, opts);

# inner gln_sfbm(v, opts) → {float}

Generates 3D Fractional Brownian motion (fBm) from Simplex Noise.
Parameters:
Name Type Description
v vec3 Point to sample fBm at.
opts gln_tFBMOpts Options for generating Simplex Noise.
Value of fBm at point "p".
float
Example
gln_tFBMOpts opts =
     gln_tFBMOpts(uSeed, 0.3, 2.0, 0.5, 1.0, 5, false, false);

float n = gln_sfbm(position.xy, opts);

# inner gln_simplex(v) → {float}

Generates 2D Simplex Noise.
Parameters:
Name Type Description
v vec2 Point to sample Simplex Noise at.
Value of Simplex Noise at point "p".
float
Example
float n = gln_simplex(position.xy);

# inner gln_simplex(v) → {float}

Generates 3D Simplex Noise.
Parameters:
Name Type Description
v vec3 Point to sample Simplex Noise at.
Value of Simplex Noise at point "p".
float
Example
float n = gln_simplex(position.xyz);