OpenGL-ES-滤镜-顶点着色器
2019-01-21 本文已影响0人
hie
//顶点坐标
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;
}