John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 1 | #version 330 core
|
| 2 | #extension GL_ARB_separate_shader_objects : enable
|
| 3 |
|
| 4 | in gl_PerVertex
|
| 5 | {
|
| 6 | float gl_ClipDistance[1];
|
| 7 | vec4 gl_Position;
|
| 8 | } gl_in[];
|
| 9 |
|
| 10 | out gl_PerVertex
|
| 11 | {
|
| 12 | vec4 gl_Position;
|
| 13 | float gl_ClipDistance[1];
|
| 14 | };
|
| 15 |
|
| 16 | layout( triangles ) in;
|
| 17 | layout( triangle_strip, max_vertices = 3 ) out;
|
| 18 |
|
| 19 | void main()
|
| 20 | {
|
| 21 | vec4 v;
|
| 22 | gl_Position = gl_in[1].gl_Position;
|
| 23 | gl_ClipDistance[0] = gl_in[1].gl_ClipDistance[0];
|
| 24 | EmitVertex();
|
| 25 | EndPrimitive();
|
| 26 | }
|