From e2fc8f7dda9316460063bc3290aaee0285c62ec9 Mon Sep 17 00:00:00 2001 From: paramat Date: Fri, 23 Oct 2015 23:02:10 +0100 Subject: 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 --- src/mapgen_fractal.h | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'src/mapgen_fractal.h') 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; -- cgit v1.2.3