• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 330 core
2
3precision highp float;
4
5layout(triangles) in;
6layout(triangle_strip, max_vertices = 4) out;
7
8in block
9{
10    vec2 Color;
11    vec2 Texcoord;
12    flat ivec3 in_a;
13} In[];
14
15out block
16{
17    vec4 Color;
18    vec4 a;
19    vec2 b[3];
20} Out;
21
22void main()
23{
24    for(int i = 0; i < gl_in.length(); ++i)
25    {
26        gl_Position = gl_in[i].gl_Position;
27        Out.Color = vec4(In[i].Color, 0, 1);
28        EmitVertex();
29    }
30    EndPrimitive();
31}
32