blob: ebd4ac66ec41a39fb404418bb7e64a0d8d2c6b74 [file] [log] [blame]
John Kessenich39374da2015-05-15 21:32:46 +00001#version 330 core
2#extension GL_ARB_separate_shader_objects : enable
3
4in gl_PerVertex
5{
6 float gl_ClipDistance[1];
7 vec4 gl_Position;
8} gl_in[];
9
10out gl_PerVertex
11{
12 vec4 gl_Position;
13 float gl_ClipDistance[1];
14};
15
16layout( triangles ) in;
17layout( triangle_strip, max_vertices = 3 ) out;
18
19void 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}