3 GL_ARB_tessellation_shader
6 [vertex shader passthrough]
8 [tessellation control shader]
9 #extension GL_ARB_tessellation_shader: require
10 layout(vertices = 3) out;
15 gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
16 gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 0.0);
17 gl_TessLevelInner = float[2](0.0, 0.0);
18 color = vec4(0, 1, 0, 1);
22 [tessellation evaluation shader]
23 #extension GL_ARB_tessellation_shader: require
30 gl_Position = gl_in[0].gl_Position * gl_TessCoord[0]
31 + gl_in[1].gl_Position * gl_TessCoord[1]
32 + gl_in[2].gl_Position * gl_TessCoord[2];
43 gl_FragColor = color_fs;
56 clear color 0.1 0.1 0.1 0.1
58 patch parameter vertices 3
59 draw arrays GL_PATCHES 0 6
60 probe all rgba 0.0 1.0 0.0 1.0