screenquad.vert 242 B

12345678910111213141516
  1. #if __VERSION__ >= 330
  2. layout(location = 0) in vec2 Position;
  3. layout(location = 3) in vec2 Texcoord;
  4. #else
  5. in vec2 Position;
  6. in vec2 Texcoord;
  7. #endif
  8. out vec2 uv;
  9. void main()
  10. {
  11. uv = Texcoord;
  12. gl_Position = vec4(Position, 0., 1.);
  13. }