OpenGL ES 三种变量类型(uniform,attribute和varying)
https://blog.csdn.net/jackers679/article/details/6848085
https://zhuanlan.zhihu.com/p/103687720
1.uniform变量
uniform变量是外部application程序传递给(vertex和fragment)shader的变量。因此它是application通过函数glUniform**()函数赋值的。在(vertex和fragment)shader程序内部,uniform变量就像是C语言里面的常量(c
转载
2021-03-25 16:20:17 ·
698 阅读 ·
0 评论