stk-code_catmod/data/shaders/shadow.geom
2014-02-28 17:29:05 +01:00

24 lines
386 B
GLSL

uniform mat4 ModelViewProjectionMatrix[4];
layout(triangles) in;
layout(triangle_strip, max_vertices=12) out;
in vec2 tc[3];
out vec2 uv;
void main(void)
{
for (int j = 0; j<4; j++)
{
gl_Layer = j;
for(int i=0; i<3; i++)
{
uv = tc[i];
gl_Position = ModelViewProjectionMatrix[j] * gl_in[i].gl_Position;
EmitVertex();
}
EndPrimitive();
}
}