Tex2DVShader.vsh 228 B

12345678910111213
  1. attribute highp vec3 inVertex;
  2. attribute highp vec2 inTexCoord;
  3. uniform mediump mat4 MVPMatrix;
  4. varying highp vec2 TexCoord;
  5. void main()
  6. {
  7. TexCoord = inTexCoord;
  8. gl_Position = MVPMatrix * vec4(inVertex, 1.0);
  9. }