Terrible hacky SolveCubic.
[ipdf/code.git] / src / shaders / rect_outline_geom.glsl
1 #version 150
2
3 layout(lines) in;
4 layout(line_strip, max_vertices = 5) 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 = gl_in[1].gl_Position;
13         EmitVertex();
14         gl_Position = vec4(gl_in[1].gl_Position.x, gl_in[0].gl_Position.y, 0.0, 1.0);
15         EmitVertex();
16         gl_Position = gl_in[0].gl_Position;
17         EmitVertex();
18         EndPrimitive();
19 }
20

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