9 #pragma MSP stage(vertex)
10 layout(location=0) in vec4 position;
13 gl_Position = position;
17 #pragma MSP stage(fragment)
18 layout(location=0) out vec4 frag_color;
21 frag_color = (position.x>0 ? position.y>0 ? top_right : bottom_right :
22 position.y>0 ? top_left : bottom_left);
25 /* Expected output: vertex
26 layout(location=0) in vec4 position;
27 layout(location=0) out vec4 _vs_out_position;
30 gl_Position = position;
31 _vs_out_position = position;
35 /* Expected output: fragment
36 layout(binding=23) uniform Colors
43 layout(location=0) out vec4 frag_color;
44 layout(location=0) in vec4 _vs_out_position;
47 frag_color = _vs_out_position.x>0.0?(_vs_out_position.y>0.0?top_right:bottom_right):_vs_out_position.y>0.0?top_left:bottom_left;