X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgenerator.hpp;h=b3e8ffb0ad2f55045986eaca85d95d365fa80722;hb=bd6bd2c875f4b6baef913e5315aa9f7e7cd7da7a;hp=a40184bf719794e2cde735da82c865e452d3aca8;hpb=8acc3f990f1a5ee00471f72c150b407164149f2d;p=blank.git diff --git a/src/generator.hpp b/src/generator.hpp index a40184b..b3e8ffb 100644 --- a/src/generator.hpp +++ b/src/generator.hpp @@ -17,15 +17,19 @@ 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; };