3 GL_ARB_tessellation_shader
15 [tessellation control shader]
16 #extension GL_ARB_tessellation_shader: require
17 layout(vertices = 3) out;
20 gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
21 gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 0.0);
22 gl_TessLevelInner = float[2](0.0, 0.0);
26 [tessellation evaluation shader]
27 #extension GL_ARB_tessellation_shader: require
31 gl_Position = gl_in[0].gl_Position * gl_TessCoord[0]
32 + gl_in[1].gl_Position * gl_TessCoord[1]
33 + gl_in[2].gl_Position * gl_TessCoord[2];
40 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
53 clear color 0.1 0.1 0.1 0.1
55 patch parameter vertices 3
56 draw arrays GL_PATCHES 0 6
57 probe all rgba 0.0 1.0 0.0 1.0