[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Public WebGL] for cycle in fragment shader

after updating DirectX9 (again)...
As I think, The Mandelbrot set should be black (not dirty green) in http://www.ibiblio.org/e-notes/webgl/mandelbrot_zoom.html
It is green in Firefox+-ANGLE and Chromium + ANGLE. It is black in Chromium + OpenGL drivers.
As I wrote in the bug report http://code.google.com/p/angleproject/issues/detail?id=98
Colors are defined in the shader
int mm;
for(int m = 0; m < 255; m++){
I=(R+R)*I+Ci; R=R2-I2+Cr; R2=R*R; I2=I*I; mm = m;
if( R2 + I2 > 4. ) break;
if (mm == 254) gl_FragColor = vec4(0., 0., 0., 1.);
the last if operator tests if the cycle passes all iterations (i.e. mm = 254 and color is black) . I get the black Mandelbrot (M) set if I use
if (mm == 253) gl_FragColor = vec4(0., 0., 0., 1.);
And M-set looks differently if you switch off ANGLE.
what (who) is wrong?

I replace LUMINANCE rendering by RGBA one. All is fine now.

You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: