#include <seamlessnoise.h>
Public Member Functions | ||||
| SeamlessNoise (unsigned int seed=1023058) | ||||
| ~SeamlessNoise () | ||||
| void | Reseed (unsigned int seed) | |||
| Regenerates the random numbers using the given seed. | ||||
| float | GetNoise (const osg::Vec3f &vect_in, int repeat=-1) | |||
| ||||
| void | SetRepeat (int pRepeat) | |||
| The SetRepeat function will allow a user to change the frequency the noise function will repeat. | ||||
| dtUtil::SeamlessNoise::SeamlessNoise | ( | unsigned int | seed = 1023058 |
) |
| dtUtil::SeamlessNoise::~SeamlessNoise | ( | ) |
| void dtUtil::SeamlessNoise::Reseed | ( | unsigned int | seed | ) |
Regenerates the random numbers using the given seed.
| seed | new seed value |
| float dtUtil::SeamlessNoise::GetNoise | ( | const osg::Vec3f & | vect_in, | |
| int | repeat = -1 | |||
| ) |
| vect_in | a 3D Vector to hash the noise to, for 2D noise pass in a constant z value |
| repeat | pass in the frequency or the desired resolution to tile the noise in if this param is not passed in the default value will be used |
| void dtUtil::SeamlessNoise::SetRepeat | ( | int | pRepeat | ) | [inline] |
The SetRepeat function will allow a user to change the frequency the noise function will repeat.