shadow.geom 286 B

1234567891011121314151617181920
  1. layout(triangles) in;
  2. layout(triangle_strip, max_vertices=3) out;
  3. in vec2 tc[3];
  4. in int layerId[3];
  5. out vec2 uv;
  6. void main(void)
  7. {
  8. gl_Layer = layerId[0];
  9. for(int i=0; i<3; i++)
  10. {
  11. uv = tc[i];
  12. gl_Position = gl_in[i].gl_Position;
  13. EmitVertex();
  14. }
  15. EndPrimitive();
  16. }