Better biome generation w/ temperature & humidity

This commit is contained in:
Namonay
2025-06-01 20:56:41 +02:00
parent 6bd1dd3a1b
commit 2e1bb94f82
4 changed files with 65 additions and 63 deletions

View File

@@ -25,6 +25,15 @@ class NoiseCollection
4,
1.2f
));
m_collection.emplace("humidity", std::make_unique<Noise>(seed, // seed
0.02f,
0.3f,
1,
2.0f,
0.6f,
2,
1.0f
));
m_collection.emplace("caves", std::make_unique<Noise>(seed,
0.02f,
1.0f,
@@ -34,15 +43,24 @@ class NoiseCollection
3,
1.0f
)); // TODO !!!!!!
m_collection.emplace("biomes", std::make_unique<Noise>(seed,
m_collection.emplace("biomes", std::make_unique<Noise>(seed + 1,
0.05f,
1.0f,
0.1f,
1,
2.0f,
0.5f,
1,
1.0f
));
m_collection.emplace("temperature", std::make_unique<Noise>(seed + 1,
0.02f,
0.3f,
2,
2.0f,
0.55f,
2,
1.05f
));
}
Noise* GetNoise(const std::string& key) const;