mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-27 13:10:37 +00:00
39374dadb5
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31212 e7fa87d3-cd2b-0410-9028-fcbf551c1848
27 lines
486 B
GLSL
27 lines
486 B
GLSL
#version 330 core
|
|
#extension GL_ARB_separate_shader_objects : enable
|
|
|
|
in gl_PerVertex
|
|
{
|
|
float gl_ClipDistance[1];
|
|
vec4 gl_Position;
|
|
} gl_in[];
|
|
|
|
out gl_PerVertex
|
|
{
|
|
vec4 gl_Position;
|
|
float gl_ClipDistance[1];
|
|
};
|
|
|
|
layout( triangles ) in;
|
|
layout( triangle_strip, max_vertices = 3 ) out;
|
|
|
|
void main()
|
|
{
|
|
vec4 v;
|
|
gl_Position = gl_in[1].gl_Position;
|
|
gl_ClipDistance[0] = gl_in[1].gl_ClipDistance[0];
|
|
EmitVertex();
|
|
EndPrimitive();
|
|
}
|