diff options
author | paramat <paramat@users.noreply.github.com> | 2017-07-24 22:50:42 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-07-26 02:41:30 +0100 |
commit | f61928d3fc5ef90bd913af2e633275d65adce057 (patch) | |
tree | 504566887ee98d60f9ae6e8612e899f2cb86568b /src/mapgen_v7.h | |
parent | 31b84ce1f2c4f9c6264f32427c3e7be1215360f1 (diff) | |
download | minetest-f61928d3fc5ef90bd913af2e633275d65adce057.tar.gz minetest-f61928d3fc5ef90bd913af2e633275d65adce057.tar.bz2 minetest-f61928d3fc5ef90bd913af2e633275d65adce057.zip |
Mgv7: Add 'mount_zero_level' parameter
Allows setting of the mountain 'zero level' (y where density gradient is zero).
It is easy to vertically shift smooth terrain by editing noise parameter 'offset',
but vertically shifting mountain terrain was complex and imprecise, involving
making a calculation based on an average of the mountain height parameter.
Diffstat (limited to 'src/mapgen_v7.h')
-rw-r--r-- | src/mapgen_v7.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapgen_v7.h b/src/mapgen_v7.h index aededa7f5..aec28dfb4 100644 --- a/src/mapgen_v7.h +++ b/src/mapgen_v7.h @@ -38,6 +38,7 @@ extern FlagDesc flagdesc_mapgen_v7[]; struct MapgenV7Params : public MapgenParams { u32 spflags = MGV7_MOUNTAINS | MGV7_RIDGES | MGV7_CAVERNS | MGV7_BIOMEREPEAT; + s16 mount_zero_level = 0; float cave_width = 0.09f; s16 large_cave_depth = -33; s16 lava_depth = -256; @@ -92,6 +93,7 @@ public: void generateRidgeTerrain(); private: + s16 mount_zero_level; s16 large_cave_depth; float float_mount_density; float float_mount_height; |