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