#include <iPerlinNoise.h>
perlin noise
most of the implementation comes from the folowing sources source: http://flafla2.github.io/2014/08/09/perlinnoise.html source: https://gist.github.com/Flafla2/f0260a861be0ebdeef76 Thanks Adrian Biagioli
◆ iPerlinNoise()
igor::iPerlinNoise::iPerlinNoise |
( |
| ) |
|
◆ ~iPerlinNoise()
igor::iPerlinNoise::~iPerlinNoise |
( |
| ) |
|
|
default |
◆ generateBase()
void igor::iPerlinNoise::generateBase |
( |
uint32 |
seed | ) |
|
generates pseudo random numbers
- Parameters
-
seed | the seed used for generating the random numbers |
◆ getValue() [1/4]
- Returns
- noise value at specified position
1d version
- Parameters
-
◆ getValue() [2/4]
- Returns
- noise value of multiple octaves at specified position in a range of 0.0-1.0
- Parameters
-
pos | specified position |
octaves | octaves count |
persistence | multiplicator of amplitude between each octave (default 0.5) |
◆ getValue() [3/4]
- Returns
- noise value at specified position
3d version
- Parameters
-
◆ getValue() [4/4]
- Returns
- noise value of multiple octaves at specified position in a range of 0.0-1.0
- Parameters
-
pos | specified position |
octaves | octaves count |
persistence | multiplicator of amplitude between each octave (default 0.5) |
◆ RANDOM_NUMBERS_COUNT
const int64 igor::iPerlinNoise::RANDOM_NUMBERS_COUNT = 256 |
|
static |
makes pseudo infinite access possible
The documentation for this class was generated from the following files: