diff options
author | kwolekr <kwolekr@minetest.net> | 2016-04-28 03:43:09 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2016-05-27 23:23:58 -0400 |
commit | 76f485647983ebd7eb4c3abbca0869d13f76920b (patch) | |
tree | 6e6f4745311f2ac834780b5bf142dfeeea3aceb0 /src/mapgen_fractal.h | |
parent | fa6b21a15b415cd82dce6896b94a5341b7dd76f0 (diff) | |
download | hax-minetest-server-76f485647983ebd7eb4c3abbca0869d13f76920b.tar.gz hax-minetest-server-76f485647983ebd7eb4c3abbca0869d13f76920b.zip |
Move biome calculation to BiomeGen
BiomeGen defines an interface that, given a set of BiomeParams, computes biomes
for a given area using the algorithm implemented by that specific BiomeGen.
This abstracts away the old system where each mapgen supplied the noises
required for biome generation.
Diffstat (limited to 'src/mapgen_fractal.h')
-rw-r--r-- | src/mapgen_fractal.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mapgen_fractal.h b/src/mapgen_fractal.h index dd96045e2..a0e51b2c6 100644 --- a/src/mapgen_fractal.h +++ b/src/mapgen_fractal.h @@ -88,11 +88,6 @@ public: Noise *noise_cave1; Noise *noise_cave2; - Noise *noise_heat; - Noise *noise_humidity; - Noise *noise_heat_blend; - Noise *noise_humidity_blend; - content_t c_stone; content_t c_water_source; content_t c_lava_source; @@ -114,7 +109,7 @@ public: void calculateNoise(); bool getFractalAtPoint(s16 x, s16 y, s16 z); s16 generateTerrain(); - MgStoneType generateBiomes(float *heat_map, float *humidity_map); + MgStoneType generateBiomes(); void dustTopNodes(); void generateCaves(s16 max_stone_y); }; |