1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00: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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 83 additions and 7 deletions

View file

@ -26,6 +26,8 @@ typedef u16 biome_t; // copy from mg_biome.h to avoid an unnecessary include
class GenerateNotifier;
class BiomeGen;
/*
CavesNoiseIntersection is a cave digging algorithm that carves smooth,
web-like, continuous tunnels at points where the density of the intersection
@ -42,7 +44,7 @@ class CavesNoiseIntersection
{
public:
CavesNoiseIntersection(const NodeDefManager *nodedef,
BiomeManager *biomemgr, v3s16 chunksize, NoiseParams *np_cave1,
BiomeManager *biomemgr, BiomeGen *biomegen, v3s16 chunksize, NoiseParams *np_cave1,
NoiseParams *np_cave2, s32 seed, float cave_width);
~CavesNoiseIntersection();
@ -52,6 +54,8 @@ private:
const NodeDefManager *m_ndef;
BiomeManager *m_bmgr;
BiomeGen *m_bmgn;
// configurable parameters
v3s16 m_csize;
float m_cave_width;