#include <NoiseGenerator_ScriptBinding.h>
Inherits ScriptObject.
◆ getComplexNoise()
Float getComplexNoise |
( |
float |
x, |
|
|
float |
y, |
|
|
int |
octaves, |
|
|
float |
persistence |
|
) |
| |
Returns the noise for a given x and y value with multiple octaves applied.
- Parameters
-
x | A floating point value. |
y | A floating point value. |
octaves | An integer value between 1 and 8. Each octave is a layer of progressively smaller noise that is applied to the final result. |
persistence | A decimal value between 0.05 and 0.95. Larger values will cause each octave to have a larger impact on the final result. |
- Returns
- A decimal value between 0 and 1.
◆ getNoise()
Float getNoise |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Returns the noise for a given x and y value.
- Parameters
-
x | A floating point value. |
y | A floating point value. |
- Returns
- A decimal value between 0 and 1.
◆ setSeed()
Sets the seed for the noise generater.
- Parameters
-
seed | An integer seed value. |
- Returns
- No return value.