actual random generation

vertex-deduplication
EmaMaker 2023-03-29 21:23:43 +02:00
parent 179bd20aba
commit 40fec8a649
1 changed files with 4 additions and 3 deletions

View File

@ -27,9 +27,10 @@ void generateChunk(Chunk::Chunk *chunk)
Block block;
std::mt19937 mt;
OpenSimplexNoise::Noise noiseGen1(1234);
OpenSimplexNoise::Noise noiseGen2(12345);
std::random_device dev;
std::mt19937 mt(dev());
OpenSimplexNoise::Noise noiseGen1(mt());
OpenSimplexNoise::Noise noiseGen2(mt());
std::array<int, CHUNK_SIZE * CHUNK_SIZE> grassNoiseLUT;
std::array<int, CHUNK_SIZE * CHUNK_SIZE> dirtNoiseLUT;