Skip to main content

Module gradient

Module gradient 

Source

Constants§

GRADIENT
Gradient vectors shared between Perlin and simplex noise (from vanilla SimplexNoise.GRADIENT).
GRADIENT_F32
See GRADIENT for details. This is a f32 version of the gradient table for use in f32 noise functions

Functions§

corner_noise_3d
Compute corner noise contribution for a simplex vertex.
dot
Dot product of gradient vector and offset vector.
grad_dot
Calculate the f32 dot product used by vanilla Perlin noise.
grad_dot_simd
f32 N-lane gradient dot product.
gradient_f32 🔒