diff options
author | paramat <mat.gregory@virginmedia.com> | 2015-10-11 18:11:09 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2015-10-11 23:59:57 +0100 |
commit | bda2f565038ccba902880a3daf4ea8d9dbe97069 (patch) | |
tree | 78746662a5eea82107fdbdbc8601ccf32447d79a /src/mapgen_fractal.h | |
parent | 3a4bcf35a14d0f4740fe1ce379d87ac2094cc5ba (diff) | |
download | minetest-bda2f565038ccba902880a3daf4ea8d9dbe97069.tar.gz minetest-bda2f565038ccba902880a3daf4ea8d9dbe97069.tar.bz2 minetest-bda2f565038ccba902880a3daf4ea8d9dbe97069.zip |
Mgfractal: Independant offset and slice params for mandelbrot and julia
Player now spawns on julia set due to julia offset
Add commented-out '#include profiler.h' for timetaker use
Use v3fs to reduce number of parameters
Tune tunnel width to match mgv7
Diffstat (limited to 'src/mapgen_fractal.h')
-rw-r--r-- | src/mapgen_fractal.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mapgen_fractal.h b/src/mapgen_fractal.h index 75243f4f1..b515e4c93 100644 --- a/src/mapgen_fractal.h +++ b/src/mapgen_fractal.h @@ -37,13 +37,13 @@ struct MapgenFractalParams : public MapgenSpecificParams { u32 spflags; u16 iterations; - float scale_x; - float scale_y; - float scale_z; - float offset_x; - float offset_y; - float offset_z; - float slice_w; + v3f scale; + + v3f moffset; + float mslice_w; + + v3f joffset; + float jslice_w; float julia_x; float julia_y; float julia_z; @@ -75,13 +75,13 @@ public: v3s16 full_node_max; u16 iterations; - float scale_x; - float scale_y; - float scale_z; - float offset_x; - float offset_y; - float offset_z; - float slice_w; + v3f scale; + + v3f moffset; + float mslice_w; + + v3f joffset; + float jslice_w; float julia_x; float julia_y; float julia_z; |