summaryrefslogtreecommitdiff
path: root/src/mapgen_fractal.h
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-12-08 05:40:36 +0000
committerparamat <mat.gregory@virginmedia.com>2015-12-15 04:18:19 +0000
commitc26eb87aec7438d167fa2f460a3f412db09c0ac5 (patch)
tree0dfafc32c1f82da3b136283f09bc37239b75c56f /src/mapgen_fractal.h
parentaed10765f208aedf324128972c74ecc033bb5035 (diff)
downloadminetest-c26eb87aec7438d167fa2f460a3f412db09c0ac5.tar.gz
minetest-c26eb87aec7438d167fa2f460a3f412db09c0ac5.tar.bz2
minetest-c26eb87aec7438d167fa2f460a3f412db09c0ac5.zip
Mgfractal: Add 3D and 4D fractals
3D Mandelbrot/Mandelbar 3D Christmas Tree 3D Mandelbulb 3D Cosine Mandelbulb 4D Mandelbulb Plus corresponding julia set for each Add credits for formulas Rename parameter 'formula' to 'fractal' Speed optimisations
Diffstat (limited to 'src/mapgen_fractal.h')
-rw-r--r--src/mapgen_fractal.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mapgen_fractal.h b/src/mapgen_fractal.h
index 7d31a43b8..3d4f7ee8f 100644
--- a/src/mapgen_fractal.h
+++ b/src/mapgen_fractal.h
@@ -3,6 +3,9 @@ Minetest
Copyright (C) 2010-2015 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
Copyright (C) 2010-2015 paramat, Matt Gregory
+Fractal formulas from http://www.bugman123.com/Hypercomplex/index.html
+by Paul Nylander, and from http://www.fractalforums.com, thank you.
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
@@ -33,7 +36,7 @@ extern FlagDesc flagdesc_mapgen_fractal[];
struct MapgenFractalParams : public MapgenSpecificParams {
u32 spflags;
- u16 formula;
+ u16 fractal;
u16 iterations;
v3f scale;
v3f offset;
@@ -63,14 +66,17 @@ public:
int ystride;
int zstride;
- u32 spflags;
+ u16 formula;
+ bool julia;
v3s16 node_min;
v3s16 node_max;
v3s16 full_node_min;
v3s16 full_node_max;
- u16 formula;
+ u32 spflags;
+
+ u16 fractal;
u16 iterations;
v3f scale;
v3f offset;