tests/playground/tessellation/test.tesc
raw| 1 | #version 440 |
| 2 | |
| 3 | layout(vertices = 3) out; |
| 4 | |
| 5 | layout(location = 0) in vec3 inColor[]; |
| 6 | |
| 7 | layout(location = 0) out vec3 outColor[]; |
| 8 | |
| 9 | void main() |
| 10 | { |
| 11 | if (gl_InvocationID == 0) { |
| 12 | gl_TessLevelOuter[0] = 4.0; |
| 13 | gl_TessLevelOuter[1] = 4.0; |
| 14 | gl_TessLevelOuter[2] = 4.0; |
| 15 | |
| 16 | gl_TessLevelInner[0] = 4.0; |
| 17 | } |
| 18 | |
| 19 | gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position; |
| 20 | outColor[gl_InvocationID] = inColor[gl_InvocationID]; |
| 21 | } |