33 Perlin( uint8_t aOctaves = 4 );
34 Perlin( uint8_t aOctaves, int32_t aSeed );
38 void setOctaves( uint8_t aOctaves ) { mOctaves = aOctaves; }
41 float fBm(
float v )
const;
45 float fBm(
float x,
float y,
float z )
const {
return fBm(
Vec3f( x, y, z ) ); }
55 float noise(
float x )
const;
56 float noise(
float x,
float y )
const;
57 float noise(
float x,
float y,
float z )
const;
65 void initPermutationTable();
67 float grad( int32_t hash,
float x )
const;
68 float grad( int32_t hash,
float x,
float y )
const;
69 float grad( int32_t hash,
float x,
float y,
float z )
const;
uint8_t getOctaves() const
Definition: Perlin.h:37
GLenum GLint GLint y
Definition: GLee.h:987
Vec2< float > Vec2f
Definition: Vector.h:1314
Vec2f dfBm(const Vec2f &v) const
Derivative of fractal Brownian motion, corresponding with the values returned by fBm() ...
Definition: Perlin.cpp:125
void setOctaves(uint8_t aOctaves)
Definition: Perlin.h:38
float noise(float x) const
Calculates a single octave of noise.
Definition: Perlin.cpp:158
Vec3< float > Vec3f
Definition: Vector.h:1317
Vec2f dnoise(float x, float y) const
Calculates the derivative of a single octave of noise.
Definition: Perlin.cpp:223
float fBm(float v) const
Class Perlin look: fractal Brownian motion by summing 'mOctaves' worth of noise.
Definition: Perlin.cpp:64
float fBm(float x, float y, float z) const
Definition: Perlin.h:45
GLenum GLint x
Definition: GLee.h:987
const GLdouble * v
Definition: GLee.h:1384
float fBm(float x, float y) const
Definition: Perlin.h:43
GLdouble GLdouble z
Definition: GLee.h:1911
Vec2f dfBm(float x, float y) const
Definition: Perlin.h:50
Vec3f dfBm(float x, float y, float z) const
Definition: Perlin.h:52
Perlin(uint8_t aOctaves=4)
Definition: Perlin.cpp:42
void setSeed(int32_t aSeed)
Definition: Perlin.cpp:56