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 * Rpow3 from M3D. 10 * Does a power of 3 on the current length of the vector. 11 * @reference 12 * http://www.fractalforums.com/mandelbulb-3d/custom-formulas-and-transforms-release-t17106/ 13 14 * This file has been autogenerated by tools/populateUiInformation.php 15 * from the file "fractal_transf_rpow3.cpp" in the folder formula/definition 16 * D O N O T E D I T T H I S F I L E ! 17 */ 18 19REAL4 TransfRpow3Iteration(REAL4 z, __constant sFractalCl *fractal, sExtendedAuxCl *aux) 20{ 21 REAL sqrRout = dot(z, z) * fractal->transformCommon.scale; 22 23 z *= sqrRout; 24 aux->DE = aux->DE * fabs(sqrRout) + fractal->analyticDE.offset1; 25 return z; 26}