28#ifndef __Ogre_Simplex_Noise_H__
29#define __Ogre_Simplex_Noise_H__
81 return g.
x * x + g.
y * y + g.
z * z;
#define _OgreVolumeExport
Reference-counted shared pointer, used for objects where implicit destruction is required.
Standard 3-dimensional vector.
Simplex Noise ported from public domain Java Implementation http://webstaff.itn.liu....
unsigned long random(void)
Real noise(Real xIn, Real yIn, Real zIn) const
3D noise function.
long getSeed(void) const
Gets the current seed.
SimplexNoise(void)
Constructor with a random permutation table.
static Real F3
Skewing and unskewing factor for 3 dimensions.
SimplexNoise(unsigned long definedSeed)
Constructor with a by seed defined permutation table.
Real dot(const Vector3 &g, Real x, Real y, Real z) const
Dot product of a gradient with the given values.
static Real G3
Skewing and unskewing factor for 3 dimensions.
void init(unsigned long definedSeed)
Initializes the SimplexNoise instance.
float Real
Software floating point type.