~jl2/gl-fractals

3e3ad2b2c4b6bc4475d4e7c0252ae01b8f495c03 — Jeremiah LaRocco 1 year, 11 months ago 01cd044
Change colors.
2 files changed, 16 insertions(+), 16 deletions(-)

M shaders/bs-js-fragment.glsl
M shaders/js-bs-fragment.glsl
M shaders/bs-js-fragment.glsl => shaders/bs-js-fragment.glsl +6 -6
@@ 57,13 57,13 @@ void main (void)
           // green = sin(3 * (1.0 - tmpval));
           // blue = tmpval;

           red = clamp((iter % 67)/65.0, 0.0, 1.0);
           green = clamp((iter % 47)/46.0, 0.0, 1.0);
           blue = clamp((iter % 24)/23.0, 0.0, 1.0);
           // red = clamp((iter % 67)/65.0, 0.0, 1.0);
           // green = clamp((iter % 47)/46.0, 0.0, 1.0);
           // blue = clamp((iter % 24)/23.0, 0.0, 1.0);

           // red = clamp(zy * zx * zx * (iter % 67)/66.0, 0.0, 1.0);
           // green = clamp(zy * zy * (iter % 47)/46.0, 0.0, 1.0);
           // blue = clamp(zx * zx * (iter % 24)/23.0, 0.0, 1.0);
           red = clamp(zy * zx * zx * (iter % 67)/66.0, 0.0, 1.0);
           green = clamp(zy * zy * (iter % 47)/46.0, 0.0, 1.0);
           blue = clamp(zx * zx * (iter % 24)/23.0, 0.0, 1.0);

           // red = clamp(zy * sin(3.1415*zx) * (iter % 67)/66.0, 0.0, 1.0);
           // green = clamp(zx * cos(3.1415*zy) * (iter % 47)/46.0, 0.0, 1.0);

M shaders/js-bs-fragment.glsl => shaders/js-bs-fragment.glsl +10 -10
@@ 34,11 34,11 @@ void main (void)
     }
     else
     {
          // float tmpval = fract(iter / 8422.0);
          // float tmpval2 = fract(iter / 11133.0);
          // float red = tmpval2;
          // float green = sin(3 * (1.0 - tmpval));
          // float blue = tmpval;
          float tmpval = fract(iter / 8422.0);
          float tmpval2 = fract(iter / 11133.0);
          float red = tmpval2;
          float green = sin(3 * (1.0 - tmpval));
          float blue = tmpval;

          // float red = clamp(imag * real * (iter % 67)/66.0, 0.0, 1.0);
          // float green = clamp(imag * (iter % 47)/46.0, 0.0, 1.0);


@@ 66,11 66,11 @@ void main (void)
          // float green = clamp(fi * abs(sin(pow(fi, real))), 0.0, 1.0);
          // float blue =  clamp(fi * abs(cos(pow(fi, fi)) * sin(pow(real, fi))), 0.0, 1.0);

          float pi = 3.141592654;
          float fi = (0.5 + sin(pi * (iter/2400.0))) / 2.0;
          float red =   clamp(pow((1.0 - fi), (real*imag)), 0.0, 1.0);
          float green = clamp(pow(fi, abs(sin(fi+imag))), 0.0, 1.0);
          float blue =  clamp(abs(tan(fi - sin(fi + real))), 0.0, 1.0);
          // float pi = 3.141592654;
          // float fi = (0.5 + sin(pi * (iter/2400.0))) / 2.0;
          // float red =   clamp(pow((1.0 - fi), (real*imag)), 0.0, 1.0);
          // float green = clamp(pow(fi, abs(sin(fi+imag))), 0.0, 1.0);
          // float blue =  clamp(abs(tan(fi - sin(fi + real))), 0.0, 1.0);

          // float pi = 3.141592654;
          // float fi = (0.5 + sin(pi * (iter/2400.0))) / 2.0;