Classes
Members
shaderChunk
GLSL Shader Chunk for 2D Perlin Noise. Can be used with three-CustomShaderMaterial. See: three-CustomShaderMaterial
Methods
(static) map(x, in_min, in_max, out_min, out_max) → {number}
Maps a number from one range to another.
Parameters
Name | Type | Description |
---|---|---|
x |
number | Input Number |
in_min |
number | Current range minimum |
in_max |
number | Current range maximum |
out_min |
number | New range minimum |
out_max |
number | New range maximum |
Returns
Input Mapped to range [out_min, out_max]
- Type
- number
get2(input) → {number}
Samples 2D Perlin Nosie at given coordinates.
Parameters
Name | Type | Description |
---|---|---|
input |
THREE.Vector2 | THREE.Vector3 | Coordincates to sample at |
Returns
Value of Perlin Noise at that coordinate.
- Type
- number