Constructor
new FBM(options)
Create an instance of the FBM class. Use this instance to generate fBm noise.
Parameters
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Options for fBm generaiton. Properties
|
Classes
Methods
get2(input) → {number}
Sample 2D Perlin Noise with fBm at given
coordinates. The function will use Perlin_get2
or Perlin_get3
depending on the input vector's type.
Parameters
Name | Type | Description |
---|---|---|
input |
THREE.Vector2 | THREE.Vector3 | Coordinates to sample noise at. |
Returns
Normalized noise in the range [0, 1]
- Type
- number
get3(input) → {number}
Sample 3D Perlin Noise with fBm at given
coordinates. The function will use Perlin_get2
or Perlin_get3
depending on the input vector's type.
Parameters
Name | Type | Description |
---|---|---|
input |
THREE.Vector3 | Coordinates to sample noise at. |
Returns
Normalized noise in the range [0, 1]
- Type
- number