X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Frand%2FSimplexNoise.hpp;h=dbe3d59c61950c59ee97983e879309a8f288a5d4;hb=7570271f7e1ede3ef65808f859597001338a7fe6;hp=7a7242b05b59af021fbd741dc9a84202f96feea9;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/rand/SimplexNoise.hpp b/src/rand/SimplexNoise.hpp index 7a7242b..dbe3d59 100644 --- a/src/rand/SimplexNoise.hpp +++ b/src/rand/SimplexNoise.hpp @@ -1,16 +1,17 @@ #ifndef BLANK_RAND_SIMPLEXNOISE_HPP_ #define BLANK_RAND_SIMPLEXNOISE_HPP_ -#include +#include "../graphics/glm.hpp" + +#include namespace blank { -/// (3D only) adaptation of Stefan Gustavson's SimplexNoise java class class SimplexNoise { public: - explicit SimplexNoise(unsigned int seed) noexcept; + explicit SimplexNoise(std::uint64_t seed) noexcept; float operator ()(const glm::vec3 &) const noexcept; @@ -23,6 +24,10 @@ private: int perm[512]; int perm12[512]; glm::vec3 grad[12]; + glm::ivec3 second_ints[8]; + glm::ivec3 third_ints[8]; + glm::vec3 second_floats[8]; + glm::vec3 third_floats[8]; };