X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgenerator.hpp;h=b3e8ffb0ad2f55045986eaca85d95d365fa80722;hb=bd6bd2c875f4b6baef913e5315aa9f7e7cd7da7a;hp=9dc39cb54a30bbdd19d59ab79506898472c6c523;hpb=2d5671c2ef977defae9ce0ce7248582ab3e8f011;p=blank.git diff --git a/src/generator.hpp b/src/generator.hpp index 9dc39cb..b3e8ffb 100644 --- a/src/generator.hpp +++ b/src/generator.hpp @@ -18,16 +18,18 @@ public: void operator ()(Chunk &) const; void Space(Block::Type t) { space = t; } + void Light(Block::Type t) { light = t; } void Solids(const std::vector &s) { solids = s; } private: SimplexNoise solidNoise; - SimplexNoise typeNoise; + WorleyNoise typeNoise; float stretch; float solid_threshold; Block::Type space; + Block::Type light; std::vector solids; };