I'm playing with custom
CCSprite fragment shaders, but I can't figure out why I get a white color with this code
gl_FragColor = vec4(1.0, 1.0, 1.0, 0.0);
when it's transparent with this
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
The alpha channel is zero in both cases, so shouln't the sprite be transparent in both cases?