mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-28 01:39:17 -05:00
Increasing maxInterations glsl100 to 255 to match with glsl330 and add glsl120
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user