Increasing maxInterations glsl100 to 255 to match with glsl330 and add glsl120

This commit is contained in:
Maicon Santana
2025-08-11 18:16:00 +01:00
parent 705ce45a33
commit 00f7121b1c
2 changed files with 82 additions and 2 deletions

View File

@ -12,7 +12,7 @@ uniform float zoom; // Zoom of the scale.
// NOTE: Maximum number of shader for-loop iterations depend on GPU,
// for example, on RasperryPi for this examply only supports up to 60
const int maxIterations = 48; // Max iterations to do.
const int maxIterations = 255; // Max iterations to do.
const float colorCycles = 1.0; // Number of times the color palette repeats.
// Square a complex number
@ -57,7 +57,7 @@ void main()
z.y += offset.y;
int iter = 0;
for (int iterations = 0; iterations < 60; iterations++)
for (int iterations = 0; iterations < maxIterations; iterations++)
{
z = ComplexSquare(z) + c; // Iterate function
if (dot(z, z) > 4.0) break;