11 2012 档案

摘要:(1)Thegl_FragCoordbuilt-in GLSL variable can be used in fragment shaders to get the window-space coordinates of the current fragment. 阅读全文
posted @ 2012-11-09 11:44 冰点猎手 阅读(204) 评论(0) 推荐(0)
摘要:一 一个合格的程序员应该读过哪些书 :http://blog.csdn.net/justjavac/article/details/7865418 阅读全文
posted @ 2012-11-07 10:20 冰点猎手 阅读(158) 评论(0) 推荐(0)
摘要:(1)glGetUniformLocation 报错:invalid operator 时,除了常规的program相关错误外,注意shader是否有错误(2)万恶的GLSL,由于in 的变量是只读的,我在shader里对in的变量进行更改,导致无名错误调试了好久。FUCK~(3)又是Shader出的问题,当一个uniform 变量同shader最终的输出没有任何关系时,编译器会将该变量优化掉,这样就无法提供该变量的location, 导致glGetUniformLocation函数返回-1(4)d:\programs\microsoft visual studio 8\vc\platform 阅读全文
posted @ 2012-11-01 20:03 冰点猎手 阅读(368) 评论(0) 推荐(0)