1 #ifndef BLANK_WORLD_GENERATOR_HPP_
2 #define BLANK_WORLD_GENERATOR_HPP_
5 #include "../rand/SimplexNoise.hpp"
6 #include "../rand/WorleyNoise.hpp"
20 std::uint64_t seed = 0;
21 float stretch = 64.0f;
22 float solid_threshold = 0.5f;
25 explicit Generator(const Config &) noexcept;
27 void operator ()(Chunk &) const noexcept;
29 void Space(Block::Type t) noexcept { space = t; }
30 void Light(Block::Type t) noexcept { light = t; }
31 void Solids(const std::vector<Block::Type> &s) { solids = s; }
34 SimplexNoise solidNoise;
35 WorleyNoise typeNoise;
38 float solid_threshold;
42 std::vector<Block::Type> solids;