Adaption of the the perlin noise code found at http://adrianb.io/2014/08/09/perlinnoise.html
More...
|
static double | GetValue (double x, double y, double z, double range=1.0) |
| Calculate a Perlin noise value at a coordinate More...
|
|
static double | GetValue (double x, double y, double z, int octaves, double persistence, double range=1.0) |
| Generate a Perlin noise value by adding mulitple values over multiple passes at different frequencies. More...
|
|
Adaption of the the perlin noise code found at http://adrianb.io/2014/08/09/perlinnoise.html
◆ GetValue() [1/2]
static double KS.Reactor.ksPerlinNoise.GetValue |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
double |
range = 1.0 |
|
) |
| |
|
static |
Calculate a Perlin noise value at a coordinate
- Parameters
-
- Returns
- Perlin noise value.
◆ GetValue() [2/2]
static double KS.Reactor.ksPerlinNoise.GetValue |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
int |
octaves, |
|
|
double |
persistence, |
|
|
double |
range = 1.0 |
|
) |
| |
|
static |
Generate a Perlin noise value by adding mulitple values over multiple passes at different frequencies.
- Parameters
-
x | |
y | |
z | |
octaves | Number of passes to combine |
persistence | The amount a noise pass is scaled by in each pass. Scaling is applied repreatedly in each pass. |
range | |
- Returns
- Perline noise value.