3 const int threshold = 3;
5 #pragma MSP stage(vertex)
6 layout(location=0) in vec4 position;
7 layout(location=1) in vec4 color;
10 gl_Position = position;
14 #pragma MSP stage(fragment)
15 layout(location=0) out vec4 frag_color;
18 if(!(lod+bias>threshold))
21 frag_color = vec4(1.0);
26 /* Expected output: vertex
27 layout(location=0) in vec4 position;
28 layout(location=1) in vec4 color;
29 layout(location=0) out vec4 _vs_out_color;
32 gl_Position = position;
33 _vs_out_color = color;
37 /* Expected output: fragment
38 layout(location=0) out vec4 frag_color;
39 layout(location=0) in vec4 _vs_out_color;
42 frag_color = _vs_out_color;