stk-code_catmod/data/shaders/rhpassthrough.geom

18 lines
301 B
Plaintext
Raw Normal View History

2014-05-28 01:38:25 -04:00
layout(triangles) in;
layout(triangle_strip, max_vertices=3) out;
in int layer[3];
flat out int slice;
void main(void)
{
gl_Layer = layer[0];
for(int i=0; i<3; i++)
{
slice = layer[0];
gl_Position = gl_in[i].gl_Position;
EmitVertex();
}
EndPrimitive();
}