Capítulo 597 de 859
A utility class providing noise functions.
The code is based on Simplex noise demystified by Stefan Gustavson, 2005.
import { SimplexNoise } from 'three/addons/math/SimplexNoise.js';
Constructor
| Signature |
|---|
new SimplexNoise( r : Object ) |
Methods
| Method | Description |
|---|---|
.noise( xin : number, yin : number ) : number | A 2D simplex noise method. |
.noise3d( xin : number, yin : number, zin : number ) : number | A 3D simplex noise method. |
.noise4d( x : number, y : number, z : number, w : number ) : number | A 4D simplex noise method. |