View Full Version : OpenGL ES2

09-01-2015, 03:19 AM
Hi all,

So I have a shader which works on GL 3.0 Desktop version.

But when testing that same sahder on ARM, it gives me black screen.

My gl_FragColor is :

gl_FragColor.rgb = (alternate.y == 0.0) ?
((alternate.x == 0.0) ?
vec3(C, PATTERN.xy) :
vec3(PATTERN.z, C, PATTERN.w)) :
((alternate.x == 0.0) ?
vec3(PATTERN.w, C, PATTERN.z) :
vec3(PATTERN.yx, C));

By replacing it with
gl_FragColor = texture2D(tex, v_texcoord); I get textures but with no changes on it of course.

So, I am assuming that the problem is somewhere in the gl_FragColor.

Thank you in advance.