This repository has been archived on 2024-12-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2024CG-project-render/glsl/pass-through.tcs
github-classroom[bot] 686dcaf351
Initial commit
2024-11-29 09:50:03 +00:00

18 lines
338 B
Text

layout (vertices = 3) out;
in vec4 pos_cs_in[];
out vec4 pos_es_in[];
void main()
{
// Calculate the tess levels
if(gl_InvocationID == 0)
{
gl_TessLevelOuter[0] = 1;
gl_TessLevelOuter[1] = 1;
gl_TessLevelOuter[2] = 1;
gl_TessLevelInner[0] = 1;
}
pos_es_in[gl_InvocationID] = pos_cs_in[gl_InvocationID];
}