class EE::Math::PerlinNoise¶
Overview¶
Perlin noise can be used to generate gradients, textures and effects. For more information go to http://en.wikipedia.org/wiki/Perlin_noise * To get a better understanding of the variables to generate the noise, visit http://freespace.virgin.net/hugo.elias/models/m_perlin.htm. More…
#include <perlinnoise.hpp> class PerlinNoise { public: // construction ~PerlinNoise(); // methods void init(); Float getPerlinNoise2D(Float x, Float y); void setOctaves(const int& octaves); void setPersistence(const Float& pers); void setFrequency(const Float& freq); void setAmplitude(const Float& amp); void setFrequencyOctaveDep(const bool& dep); void setAmplitudeOctaveDep(const bool& dep); int getOctaves() const; Float getPersistence() const; Float getFrequency() const; Float getAmplitude() const; bool getFrequencyOctaveDep() const; bool getAmplitudeOctaveDep() const; };
Detailed Documentation¶
Perlin noise can be used to generate gradients, textures and effects. For more information go to http://en.wikipedia.org/wiki/Perlin_noise * To get a better understanding of the variables to generate the noise, visit http://freespace.virgin.net/hugo.elias/models/m_perlin.htm.
Methods¶
void init()
Reset the initial values
Float getPerlinNoise2D(Float x, Float y)
Returns:
The noise value for the 2D coordinates