1 #ifndef BLANK_WORLD_GENERATOR_HPP_
2 #define BLANK_WORLD_GENERATOR_HPP_
5 #include "../rand/SimplexNoise.hpp"
6 #include "../rand/WorleyNoise.hpp"
19 unsigned int seed = 0;
20 float stretch = 64.0f;
21 float solid_threshold = 0.5f;
24 explicit Generator(const Config &) noexcept;
26 void operator ()(Chunk &) const noexcept;
28 void Space(Block::Type t) noexcept { space = t; }
29 void Light(Block::Type t) noexcept { light = t; }
30 void Solids(const std::vector<Block::Type> &s) { solids = s; }
33 SimplexNoise solidNoise;
34 WorleyNoise typeNoise;
37 float solid_threshold;
41 std::vector<Block::Type> solids;