//顶点坐标
attribute vec4 position;
//纹理坐标
attribute vec2 textureCoordinate;
varying lowp vec3 varyingCoord;
void main(){
varyingCoord = textureCoordinate;
gl_Position= position;
}
//顶点坐标
attribute vec4 position;
//纹理坐标
attribute vec2 textureCoordinate;
varying lowp vec3 varyingCoord;
void main(){
varyingCoord = textureCoordinate;
gl_Position= position;
}
本文标题:OpenGL-ES-滤镜-顶点着色器
本文链接:https://www.haomeiwen.com/subject/bihcjqtx.html
网友评论