开发者

Why link error with following simple OpenGL ES2 shader?

Just simple programming with follow(from here)

float odd = floor(mod(gl_FragCoord.y, 2.0));  // prob开发者_JAVA技巧lems come from this line 
gl_FragColor = vec4(v_color.x, v_color.y, v_color.z, odd);

But it can not pass the link.

I know it is quite simple,but it is quiet new for me, I just want to go through this problem. Thanks for letting me know.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜