]> git.localhorst.tv Git - blank.git/blobdiff - src/noise.hpp
rough (untested) implementation of Worley noise
[blank.git] / src / noise.hpp
index c081fc6a64f842dc45042385f5a4c761da219380..4c26de92eadf0ae3bacd679cc069e0337bf27861 100644 (file)
@@ -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