No Description

quad.vert 218B

1234567891011121314
  1. #version 450
  2. layout (location = 0) out vec2 outUV;
  3. out gl_PerVertex
  4. {
  5. vec4 gl_Position;
  6. };
  7. void main()
  8. {
  9. outUV = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
  10. gl_Position = vec4(outUV, 0.0f, 1.0f);
  11. }