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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user