【GLSL Notes】
API of shader:
glCreateShader(), glShaderSource(), glCompileShader(), glGetShadrInfoLog(), glCreateProgram()
API of porgram:
glCreateProgram(), glAttachShader(), glDetashShader(), glLinkProgarm(), glGetProgarmInfoLog(), glUseProgram()
Resource Release:
glDeleteShader(), glDeleteProgram(), glIsProgram(), glIsShader(), glValidateProgram()
【类型限定符】
attribute, varying, uniform
glGetAttribLocation(), glBindAttribLocation(), glGetUniformLocation(), glVertexAttrib(), glVertexAtrribPointer()
【注意要点】
gl_position必须由顶点着色器更新,GL将会对此值进行插值,然后传递给片断着色器。
原文:http://www.cnblogs.com/tekkaman/p/3533528.html