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 c constant to z vector 10 * This formula contains aux.pos_neg 11 12 * This file has been autogenerated by tools/populateUiInformation.php 13 * from the file "fractal_transf_add_norm.cpp" in the folder formula/definition 14 * D O N O T E D I T T H I S F I L E ! 15 */ 16 17REAL4 TransfAddNormIteration(REAL4 z, __constant sFractalCl *fractal, sExtendedAuxCl *aux) 18{ 19 z += fractal->transformCommon.offset000; 20 REAL4 zNorm = z / aux->r; 21 REAL4 rotadd = Matrix33MulFloat4(fractal->transformCommon.rotationMatrix, zNorm); 22 z += fractal->transformCommon.scale1 * rotadd; 23 z -= fractal->transformCommon.offset000; 24 if (fractal->analyticDE.enabledFalse) 25 aux->DE = 26 aux->DE * length(z) / aux->r * fractal->analyticDE.scale1 + fractal->analyticDE.offset0; 27 return z; 28}