baldurk | 1905069 | 2019-02-11 11:50:24 +0000 | [diff] [blame] | 1 | #version 330 core
|
| 2 |
|
| 3 | precision highp float;
|
| 4 |
|
| 5 | layout(triangles) in;
|
| 6 | layout(triangle_strip, max_vertices = 4) out;
|
| 7 |
|
| 8 | in block
|
| 9 | {
|
| 10 | vec2 Color;
|
| 11 | vec2 Texcoord;
|
| 12 | flat ivec3 in_a;
|
| 13 | } In[];
|
| 14 |
|
| 15 | out block
|
| 16 | {
|
| 17 | vec4 Color;
|
| 18 | vec4 a;
|
| 19 | vec2 b[3];
|
| 20 | } Out;
|
| 21 |
|
| 22 | void 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 | }
|