default.vert 281 B

123456789101112131415161718
  1. uniform mat4 u_mvpMatrix;
  2. uniform vec3 texSize; // not used
  3. in vec4 a_position;
  4. in vec3 a_texCoord;
  5. out vec2 texCoord;
  6. out vec2 videoCoord;
  7. void main()
  8. {
  9. gl_Position = u_mvpMatrix * a_position;
  10. texCoord = a_texCoord.xy;
  11. #if SUPERIMPOSE
  12. videoCoord = a_texCoord.xz;
  13. #endif
  14. }