1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Stratum ore: Add option for a constant thickness stratum

Add a 'stratum thickness' integer parameter, as an alternative
to providing a 2nd noise parameter for thickness variation.
This commit is contained in:
paramat 2017-11-18 20:37:00 +00:00 committed by paramat
parent c655984849
commit 4b553ece09
4 changed files with 35 additions and 18 deletions

View file

@ -35,6 +35,7 @@ class MMVManip;
#define OREFLAG_PUFF_CLIFFS 0x02
#define OREFLAG_PUFF_ADDITIVE 0x04
#define OREFLAG_USE_NOISE 0x08
#define OREFLAG_USE_NOISE2 0x10
enum OreType {
ORE_SCATTER,
@ -139,6 +140,7 @@ public:
NoiseParams np_stratum_thickness;
Noise *noise_stratum_thickness = nullptr;
u16 stratum_thickness;
OreStratum() = default;
virtual ~OreStratum();