Capítulo 597 de 859

Chapter 597: SimplexNoise

Core Idea

A utility class providing noise functions.

The code is based on Simplex noise demystified by Stefan Gustavson, 2005.

Code Examples

import { SimplexNoise } from 'three/addons/math/SimplexNoise.js';
  • What it demonstrates: Typical usage of SimplexNoise.

Reference Tables

Constructor

Signature
new SimplexNoise( r : Object )

Methods

MethodDescription
.noise( xin : number, yin : number ) : numberA 2D simplex noise method.
.noise3d( xin : number, yin : number, zin : number ) : numberA 3D simplex noise method.
.noise4d( x : number, y : number, z : number, w : number ) : numberA 4D simplex noise method.

Key Takeaways

  1. Key methods: noise, noise3d, noise4d.

Connects To