DefaultVertShader.vsh 317 B

1234567891011121314151617
  1. attribute highp vec3 inVertex;
  2. attribute mediump vec2 inTexCoord;
  3. uniform highp mat4 MVPMatrix;
  4. uniform float fUOffset;
  5. varying mediump vec2 TexCoord;
  6. void main()
  7. {
  8. gl_Position = MVPMatrix * vec4(inVertex, 1.0);
  9. // Pass through texcoords
  10. TexCoord = inTexCoord;
  11. TexCoord.x += fUOffset;
  12. }