File: SimplexNoise.md | Updated: 11/15/2025
A utility class providing noise functions.
The code is based on Simplex noise demystified by Stefan Gustavson, 2005.
SimplexNoise is an addon, and must be imported explicitly, see Installation#Addons.
import { SimplexNoise } from 'three/addons/math/SimplexNoise.js';
Constructs a new simplex noise object.
r | A math utility class that holds a random() method. This makes it possible to pass in custom random number generator. Default is Math.
---|---
A 2D simplex noise method.
xin | The x coordinate.
---|---
yin | The y coordinate.
Returns: The noise value.
A 3D simplex noise method.
xin | The x coordinate.
---|---
yin | The y coordinate.
zin | The z coordinate.
Returns: The noise value.
A 4D simplex noise method.
x | The x coordinate.
---|---
y | The y coordinate.
z | The z coordinate.
w | The w coordinate.
Returns: The noise value.