1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#define saturate(x) clamp(x,0.0,1.0) #define lerp mix #line 0 attribute vec2 textureCoord; varying vec2 texCoord; void main(){ gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; texCoord = textureCoord; }