2013年6月11日
摘要: OpenGL ES 三种类型修饰 uniform attribute varying分类:OpenGL 学习2012-08-08 17:44275人阅读评论(0)收藏举报shaderapplication影视语言c1.uniform变量uniform变量是外部application程序传递给(vertex和fragment)shader的变量。因此它是application通过函数glUniform**()函数赋值的。在(vertex和fragment)shader程序内部,uniform变量就像是C语言里面的常量(const ),它不能被shader程序修改。(shader只能用,不能改)如 阅读全文
posted @ 2013-06-11 20:19 我靠是时候那个了 阅读(517) 评论(0) 推荐(0) 编辑