X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FGenerator.cpp;h=c37c18b6c2aa4a7f337286d6810bfd154ea6e002;hb=68f47f2824989b21ff9a480a367a6d0a41804f41;hp=c49dce17bf153d15bdc7dd12360254b2d86d137a;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/world/Generator.cpp b/src/world/Generator.cpp index c49dce1..c37c18b 100644 --- a/src/world/Generator.cpp +++ b/src/world/Generator.cpp @@ -9,13 +9,14 @@ namespace blank { Generator::Generator(const Config &config) noexcept -: solidNoise(config.solid_seed) -, typeNoise(config.type_seed) +: solidNoise(config.seed) +, typeNoise(config.seed) , stretch(1.0f/config.stretch) , solid_threshold(config.solid_threshold) +// TODO: stable dynamic generator configuration , space(0) -, light(0) -, solids() { +, light(13) +, solids({ 1, 4, 7, 10 }) { } @@ -47,8 +48,6 @@ void Generator::operator ()(Chunk &chunk) const noexcept { } } } - chunk.Invalidate(); - chunk.CheckUpdate(); } }