Import
SimplexNoise is an addon, and must be imported explicitly, see Installation#Addons.
import { SimplexNoise } from 'three/addons/math/SimplexNoise.js';
Constructor
new SimplexNoise( r : Object )
Constructs a new simplex noise object.
| r |
A math utility class that holds a Default is |
Methods
.noise( xin : number, yin : number ) : number
A 2D simplex noise method.
| xin |
The x coordinate. |
| yin |
The y coordinate. |
- Returns: The noise value.
.noise3d( xin : number, yin : number, zin : number ) : number
A 3D simplex noise method.
| xin |
The x coordinate. |
| yin |
The y coordinate. |
| zin |
The z coordinate. |
- Returns: The noise value.
.noise4d( x : number, y : number, z : number, w : number ) : number
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.