• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 440
2
3layout(location = 0) in Primitive
4{
5    vec2 texCoord;
6} IN[];
7
8layout(location = 0) out Primitive
9{
10    vec2 texCoord;
11} OUT[];
12
13layout(vertices = 3) out;
14void main()
15{
16    OUT[gl_InvocationID].texCoord = IN[gl_InvocationID].texCoord;
17
18    float tessLevel = 10.0;
19    gl_TessLevelOuter[gl_InvocationID] = tessLevel;
20    gl_TessLevelInner[0] = tessLevel;
21}
22