SPIRV-Cross/reference/shaders/desktop-only/tese/triangle.desktop.sso.tese
Hans-Kristian Arntzen 7c1e34f3b9 GLSL: Fix array of input patch variables.
Hoist out the hack to make array sizes unsized to a place where we can
differentiate patch variables from control point variables.
2019-12-10 12:02:12 +01:00

19 lines
324 B
GLSL

#version 450
layout(triangles, cw, fractional_even_spacing) in;
in gl_PerVertex
{
vec4 gl_Position;
} gl_in[];
out gl_PerVertex
{
vec4 gl_Position;
};
void main()
{
gl_Position = ((gl_in[0].gl_Position * gl_TessCoord.x) + (gl_in[1].gl_Position * gl_TessCoord.y)) + (gl_in[2].gl_Position * gl_TessCoord.z);
}