1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

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
This commit is contained in:
paramat 2015-10-23 23:02:10 +01:00
parent 49bda7f98d
commit e2fc8f7dda
2 changed files with 61 additions and 53 deletions

View file

@ -36,14 +36,15 @@ extern FlagDesc flagdesc_mapgen_fractal[];
struct MapgenFractalParams : public MapgenSpecificParams {
u32 spflags;
u16 iterations;
v3f scale;
u16 m_iterations;
v3f m_scale;
v3f m_offset;
float m_slice_w;
v3f moffset;
float mslice_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;
@ -74,14 +75,15 @@ public:
v3s16 full_node_min;
v3s16 full_node_max;
u16 iterations;
v3f scale;
u16 m_iterations;
v3f m_scale;
v3f m_offset;
float m_slice_w;
v3f moffset;
float mslice_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;