X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fnoise.hpp;h=4c26de92eadf0ae3bacd679cc069e0337bf27861;hb=42dea80c2cffb75a5721d1cbf0cdd6277f4d520d;hp=c081fc6a64f842dc45042385f5a4c761da219380;hpb=3bb8f3a0f09672f6fab657f1af5148273edb0952;p=blank.git diff --git a/src/noise.hpp b/src/noise.hpp index c081fc6..4c26de9 100644 --- a/src/noise.hpp +++ b/src/noise.hpp @@ -24,6 +24,21 @@ private: }; + +/// implementation of Worley noise (aka Cell or Voroni noise) +class WorleyNoise { + +public: + explicit WorleyNoise(unsigned int seed); + + float operator ()(const glm::vec3 &) const; + +private: + const unsigned int seed; + const int num_points; + +}; + } #endif