RandNoise.h 351 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "Noise.h"
  3. #include <Random.h>
  4. class FastNoiseWrapper;
  5. #define RandNoiseTableSize 1024 * 1024
  6. class RandNoise : public Noise
  7. {
  8. private:
  9. unsigned short* table;
  10. int seed;
  11. public:
  12. RandNoise(int seed);
  13. ~RandNoise();
  14. int getSeed() const override;
  15. double getNoise(double x, double y, double z) override;
  16. };