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;
13 gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
14 gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 0.0);
15 gl_TessLevelInner = float[2](0.0, 0.0);
19 [tessellation evaluation shader]
20 #extension GL_ARB_tessellation_shader: require
26 gl_Position = gl_in[0].gl_Position * gl_TessCoord[0]
27 + gl_in[1].gl_Position * gl_TessCoord[1]
28 + gl_in[2].gl_Position * gl_TessCoord[2];
30 color_fs = vec4(0, 1, 0, 1);
39 gl_FragColor = color_fs;
52 clear color 0.1 0.1 0.1 0.1
54 patch parameter vertices 3
55 draw arrays GL_PATCHES 0 6
56 probe all rgba 0.0 1.0 0.0 1.0