mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-24 11:50:06 +00:00
23 lines
365 B
GLSL
23 lines
365 B
GLSL
#version 410
|
|
|
|
layout(triangles) in;
|
|
layout(triangle_strip, max_vertices=3) out;
|
|
|
|
in gl_PerVertex
|
|
{
|
|
vec4 gl_Position;
|
|
} gl_in[];
|
|
|
|
void main()
|
|
{
|
|
gl_Position = gl_in[0].gl_Position;
|
|
EmitVertex();
|
|
|
|
gl_Position = gl_in[1].gl_Position;
|
|
EmitVertex();
|
|
|
|
gl_Position = gl_in[2].gl_Position;
|
|
EmitVertex();
|
|
|
|
EndPrimitive();
|
|
} |