3 GL_ARB_tessellation_shader
15 [tessellation control shader]
17 #extension GL_ARB_tessellation_shader: require
19 layout(vertices = 3) out;
23 gl_TessLevelInner[0] = 1.0;
24 gl_TessLevelInner[1] = 1.0;
25 gl_TessLevelOuter[0] = 1.0;
26 gl_TessLevelOuter[1] = 1.0;
27 gl_TessLevelOuter[2] = 1.0;
28 gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
31 [tessellation evaluation shader]
33 #extension GL_ARB_tessellation_shader: require
39 int index = int(gl_TessCoord.y + (2 * gl_TessCoord.z));
40 gl_Position = gl_in[index].gl_Position;
48 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
61 clear color 0.1 0.1 0.1 0.1
63 patch parameter vertices 3
64 draw arrays GL_PATCHES 0 6
65 probe all rgba 0.0 1.0 0.0 1.0