1 const bool use_color = false;
3 #pragma MSP stage(vertex)
4 layout(location=0) in vec4 position;
5 layout(location=1) in vec4 color;
8 gl_Position = position;
12 #pragma MSP stage(fragment)
13 layout(location=0) out vec4 frag_color;
16 frag_color = (use_color ? color : vec4(1.0));
21 /* Expected output: vertex
22 layout(location=0) in vec4 position;
25 gl_Position = position;
29 /* Expected output: fragment
30 layout(location=0) out vec4 frag_color;
33 frag_color = vec4(1.0);