sandbox/misc/noise/noise.h

17 lines
224 B
C
Raw Permalink Normal View History

2019-02-17 00:50:56 +00:00
#ifndef __NOISE_H
#define __NOISE_H
class NoiseGenerator {
public:
NoiseGenerator();
double sample(double x, double y, double z);
void randomise();
private:
uint8_t p[512];
uint8_t perm[256];
};
#endif // __NOISE_H