ColorDrawToMsVertexShaderSource.vert 253 B

1234567891011
  1. #version 450 core
  2. void main()
  3. {
  4. int low = gl_VertexIndex & 1;
  5. int high = gl_VertexIndex >> 1;
  6. gl_Position.x = (float(low) - 0.5f) * 2.0f;
  7. gl_Position.y = (float(high) - 0.5f) * 2.0f;
  8. gl_Position.z = 0.0f;
  9. gl_Position.w = 1.0f;
  10. }