mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 12:00:05 +00:00
29 lines
530 B
GLSL
29 lines
530 B
GLSL
#version 440
|
|
|
|
layout(triangles) in;
|
|
layout(triangle_strip, max_vertices=3) out;
|
|
|
|
layout(location = 0) in vec4 in_a1[3];
|
|
layout(location = 1) in vec2 in_a2[3];
|
|
|
|
layout(location = 0) out vec4 a1;
|
|
layout(location = 1) out vec2 a2;
|
|
|
|
void main()
|
|
{
|
|
a1 = in_a1[0];
|
|
a2 = in_a2[0];
|
|
gl_Position = vec4(1.0);
|
|
EmitVertex();
|
|
|
|
a1 = in_a1[1];
|
|
a2 = in_a2[1];
|
|
gl_Position = vec4(1.0);
|
|
EmitVertex();
|
|
|
|
a1 = in_a1[2];
|
|
a2 = in_a2[2];
|
|
gl_Position = vec4(1.0);
|
|
EmitVertex();
|
|
}
|