// there is no elegance here. only sleep deprivation and regret.
[ipdf/code.git] / src / shaders / rect_filled_geom.glsl
1 #version 150
2
3 layout(lines) in;
4 layout(triangle_strip, max_vertices = 4) out;
5
6 void main()
7 {
8         gl_Position = gl_in[0].gl_Position;
9         EmitVertex();
10         gl_Position = vec4(gl_in[0].gl_Position.x, gl_in[1].gl_Position.y, 0.0, 1.0);
11         EmitVertex();
12         gl_Position = vec4(gl_in[1].gl_Position.x, gl_in[0].gl_Position.y, 0.0, 1.0);
13         EmitVertex();
14         gl_Position = gl_in[1].gl_Position;
15         EmitVertex();
16         EndPrimitive();
17 }

UCC git Repository :: git.ucc.asn.au