1 /**
2  * Mandelbulber v2, a 3D fractal generator  _%}}i*<.         ______
3  * Copyright (C) 2020 Mandelbulber Team   _>]|=||i=i<,      / ____/ __    __
4  *                                        \><||i|=>>%)     / /   __/ /___/ /_
5  * This file is part of Mandelbulber.     )<=i=]=|=i<>    / /__ /_  __/_  __/
6  * The project is licensed under GPLv3,   -<>>=|><|||`    \____/ /_/   /_/
7  * see also COPYING file in this folder.    ~+{i%+++
8  *
9  * Adds Cpixel constant to z vector
10  */
11 
12 #include "all_fractal_definitions.h"
13 
cFractalTransfAddCpixel()14 cFractalTransfAddCpixel::cFractalTransfAddCpixel() : cAbstractFractal()
15 {
16 	nameInComboBox = "T>Add Cpixel";
17 	internalName = "transf_add_cpixel";
18 	internalID = fractal::transfAddCpixel;
19 	DEType = analyticDEType;
20 	DEFunctionType = withoutDEFunction;
21 	cpixelAddition = cpixelDisabledByDefault;
22 	defaultBailout = 100.0;
23 	DEAnalyticFunction = analyticFunctionNone;
24 	coloringFunction = coloringFunctionDefault;
25 }
26 
FormulaCode(CVector4 & z,const sFractal * fractal,sExtendedAux & aux)27 void cFractalTransfAddCpixel::FormulaCode(CVector4 &z, const sFractal *fractal, sExtendedAux &aux)
28 {
29 	z += aux.const_c * fractal->transformCommon.constantMultiplier111;
30 }
31