X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FGenerator.hpp;h=e431f7debbd02a588d1d118250795f0e07248a34;hb=7bd3601fafbecae415bd96fc24404b21338cd7a4;hp=cf94356a482ccfd2a5e028a83975d027f63c11c9;hpb=9240fdf2e68ee014da0d0a89a7fb2f29ebf28e2d;p=blank.git diff --git a/src/world/Generator.hpp b/src/world/Generator.hpp index cf94356..e431f7d 100644 --- a/src/world/Generator.hpp +++ b/src/world/Generator.hpp @@ -1,11 +1,11 @@ #ifndef BLANK_WORLD_GENERATOR_HPP_ #define BLANK_WORLD_GENERATOR_HPP_ +#include "../graphics/glm.hpp" #include "../rand/SimplexNoise.hpp" #include #include -#include namespace blank { @@ -42,11 +42,8 @@ public: void operator ()(Chunk &) const noexcept; private: - Block Generate(const glm::vec3 &position) const noexcept; - static float GetValue( - const SimplexNoise &, - const glm::vec3 &, - const Config::NoiseParam &) noexcept; + struct ValueField; + Block Generate(const ValueField &, const glm::ivec3 &position) const noexcept; private: const Config &config;