summaryrefslogtreecommitdiff
path: root/src/mapgen_fractal.h
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-10-23 23:02:10 +0100
committerparamat <mat.gregory@virginmedia.com>2015-10-24 21:18:40 +0100
commite2fc8f7dda9316460063bc3290aaee0285c62ec9 (patch)
tree043c8915ee0ab3d4bc1313a2757d630f9235f60c /src/mapgen_fractal.h
parent49bda7f98d2ca1d3553460d27c7308856969fb44 (diff)
downloadminetest-e2fc8f7dda9316460063bc3290aaee0285c62ec9.tar.gz
minetest-e2fc8f7dda9316460063bc3290aaee0285c62ec9.tar.bz2
minetest-e2fc8f7dda9316460063bc3290aaee0285c62ec9.zip
Mgfractal: Independent iterations and scale parameters
Complete set of parameters for each of mandelbrot and julia sets The julia set structure often needs different iterations and scale
Diffstat (limited to 'src/mapgen_fractal.h')
-rw-r--r--src/mapgen_fractal.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/mapgen_fractal.h b/src/mapgen_fractal.h
index b515e4c93..8e52dafec 100644
--- a/src/mapgen_fractal.h
+++ b/src/mapgen_fractal.h
@@ -36,14 +36,15 @@ extern FlagDesc flagdesc_mapgen_fractal[];
struct MapgenFractalParams : public MapgenSpecificParams {
u32 spflags;
- u16 iterations;
- v3f scale;
-
- v3f moffset;
- float mslice_w;
-
- v3f joffset;
- float jslice_w;
+ u16 m_iterations;
+ v3f m_scale;
+ v3f m_offset;
+ float m_slice_w;
+
+ u16 j_iterations;
+ v3f j_scale;
+ v3f j_offset;
+ float j_slice_w;
float julia_x;
float julia_y;
float julia_z;
@@ -74,14 +75,15 @@ public:
v3s16 full_node_min;
v3s16 full_node_max;
- u16 iterations;
- v3f scale;
-
- v3f moffset;
- float mslice_w;
+ u16 m_iterations;
+ v3f m_scale;
+ v3f m_offset;
+ float m_slice_w;
- v3f joffset;
- float jslice_w;
+ u16 j_iterations;
+ v3f j_scale;
+ v3f j_offset;
+ float j_slice_w;
float julia_x;
float julia_y;
float julia_z;