13 static const int WHITE_NOISE_DIM = 128;
18 static int getValue(
unsigned int x,
unsigned int y,
unsigned int z)
23 return samples[y*WHITE_NOISE_DIM*WHITE_NOISE_DIM + z*WHITE_NOISE_DIM + x];
26 static int samples[WHITE_NOISE_DIM*WHITE_NOISE_DIM*WHITE_NOISE_DIM];
Contains all classes and functions for the VoxelFarm engine.
static int getValue(unsigned int x, unsigned int y, unsigned int z)
Returns an integer noise value for the supplied 3D point. The value is in the range from 0 to RAND_MA...
Implements deterministic 3D white noise for ints.
static void initialize()
Initialize the Noise sample buffer.