You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

noise.h 512B

1234567891011121314151617181920212223242526
  1. /*
  2. * Simple noise module utilizing smcameron's c port of OpenSimplex
  3. */
  4. #pragma once
  5. #include "terrain/open_simplex_noise.h"
  6. #include "terrain/noisemodule.h"
  7. namespace vtk { namespace noise {
  8. class Noise : public NoiseModule {
  9. public:
  10. Noise(const int64_t& seed);
  11. ~Noise();
  12. double get2D(const double& x, const double& y);
  13. double get3D(const double& x, const double& y, const double& z);
  14. void setScale(const double& scale);
  15. protected:
  16. double mScale;
  17. struct osn_context* mCtx;
  18. };
  19. }} //vtk::noise