1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-29 14:45:20 +01:00

Cavegen y biome check (#13472)

This commit is contained in:
Riley Adams
2023-06-05 05:59:22 -04:00
committed by GitHub
parent 1ef9fc9d1f
commit 29b7aea38b
5 changed files with 83 additions and 7 deletions

View File

@@ -128,8 +128,11 @@ public:
// Same as above, but uses a raw numeric index correlating to the (x,z) position.
virtual Biome *getBiomeAtIndex(size_t index, v3s16 pos) const = 0;
virtual s16 *getBiomeTransitions() const = 0;
// Result of calcBiomes bulk computation.
biome_t *biomemap = nullptr;
s16 *biome_transitions = nullptr;
protected:
BiomeManager *m_bmgr = nullptr;
@@ -186,6 +189,7 @@ public:
Biome *getBiomeAtIndex(size_t index, v3s16 pos) const;
Biome *calcBiomeFromNoise(float heat, float humidity, v3s16 pos) const;
s16 *getBiomeTransitions() const;
float *heatmap;
float *humidmap;