1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

Mgv5: Remove blobgen. Remove crumble and wetness noises

Add large pseudorandom caves below -256
De-link terrain level from water_level
Cavegen: Mgv5 large cave code
This commit is contained in:
paramat 2015-01-21 13:24:11 +00:00
parent 109f0ffeab
commit 38e6280552
4 changed files with 322 additions and 73 deletions

View file

@ -23,7 +23,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "mapgen.h"
/////////////////// Mapgen V5 flags
#define MGV5_BLOBS 0x01
//#define MGV5_ 0x01
class BiomeManager;
extern FlagDesc flagdesc_mapgen_v5[];
@ -36,8 +38,6 @@ struct MapgenV5Params : public MapgenSpecificParams {
NoiseParams np_cave1;
NoiseParams np_cave2;
NoiseParams np_ground;
NoiseParams np_crumble;
NoiseParams np_wetness;
MapgenV5Params();
~MapgenV5Params() {}
@ -67,8 +67,6 @@ public:
Noise *noise_cave1;
Noise *noise_cave2;
Noise *noise_ground;
Noise *noise_crumble;
Noise *noise_wetness;
Noise *noise_heat;
Noise *noise_humidity;
@ -96,8 +94,7 @@ public:
void calculateNoise();
int generateBaseTerrain();
void generateBiomes();
void generateCaves();
void generateBlobs();
void generateCaves(int max_stone_y);
void dustTopNodes();
};