开发者

Why link error with following simple OpenGL ES2 shader?

开发者 https://www.devze.com 2023-03-02 12:41 出处:网络
Just simple programming with follow(from here) float odd = floor(mod(gl_FragCoord.y, 2.0));// prob开发者_JAVA技巧lems come from this line

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

精彩评论

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