]> git.localhorst.tv Git - blank.git/blobdiff - src/generator.hpp
get world seed from command line arguments
[blank.git] / src / generator.hpp
index a40184bf719794e2cde735da82c865e452d3aca8..b3e8ffb0ad2f55045986eaca85d95d365fa80722 100644 (file)
@@ -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<Block::Type> &s) { solids = s; }
 
 private:
        SimplexNoise solidNoise;
-       SimplexNoise typeNoise;
+       WorleyNoise typeNoise;
 
        float stretch;
        float solid_threshold;
 
+       Block::Type space;
+       Block::Type light;
        std::vector<Block::Type> solids;
 
 };