VertShader.vsh 284 B

1234567891011121314
  1. attribute highp vec2 inVertex;
  2. uniform highp vec2 LowerLeft;
  3. uniform highp mat2 ScaleMatrix; // width/height and screen rotation
  4. varying mediump vec2 TexCoord;
  5. void main()
  6. {
  7. gl_Position = vec4(ScaleMatrix * inVertex + LowerLeft, 0, 1);
  8. TexCoord = inVertex;
  9. }