3 layout(location = 0) in vec4 in_position;
4 layout(location = 1) in vec4 in_color;
5 layout(location = 2) in int in_refVertexIndex;
7 layout(location = 0) out vec4 out_color;
14 gl_Position = in_position;
15 if (gl_VertexIndex == in_refVertexIndex)
18 out_color = vec4(1.0, 0.0, 0.0, 1.0);