texture-generator

Procedural Equirectangular Textures

noise.js

Module. Defines a seedable 3D noise function, that is used by variour texture patterns. It is based on THREE.SimplexNoise and THREE.MathUtils.seededRandom.

noise(…)

Function. A 3D noise function. Returns a pseudo-random number ∈ [-1,1] for a point in 3D space. Coordinates x, y and z are multiplied by scale before calculating the noise.

noise( x, y, z, scale=1 )

where:

noiseSeed(…)

Function. Sets the behavior of the noise function. If the optional seed is an integer number, the next generated pseudo-random numbers are based on this seed. Otherwise the current timestamp is used as a seed to achieve a kind of randomization. The result of the function is the seed.

noiseSeed( )
noiseSeed( seed )

where:

Source

src/noise.js

Back