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 * Bristorbrot formula 10 * @reference http://www.fractalforums.com/theory/bristorbrot-3d/ 11 * by Doug Bristor 12 13 * This file has been autogenerated by tools/populateUiInformation.php 14 * from the file "fractal_bristorbrot.cpp" in the folder formula/definition 15 * D O N O T E D I T T H I S F I L E ! 16 */ 17 18REAL4 BristorbrotIteration(REAL4 z, __constant sFractalCl *fractal, sExtendedAuxCl *aux) 19{ 20 Q_UNUSED(fractal); 21 22 aux->DE = aux->DE * 2.0f * aux->r; 23 REAL newx = z.x * z.x - z.y * z.y - z.z * z.z; 24 REAL newy = z.y * (2.0f * z.x - z.z); 25 REAL newz = z.z * (2.0f * z.x + z.y); 26 z.x = newx; 27 z.y = newy; 28 z.z = newz; 29 return z; 30}