3 GL_ARB_tessellation_shader
15 [tessellation control shader]
16 #extension GL_ARB_tessellation_shader: require
17 layout(vertices = 1) out;
20 gl_TessLevelOuter = float[4](3.0, 2.0, 4.0, 5.0);
21 gl_TessLevelInner = float[2](6.0, 7.0);
25 [tessellation evaluation shader]
26 #extension GL_ARB_tessellation_shader: require
32 gl_Position = vec4(gl_TessCoord.xy * 2 - 1, 0, 1);
33 color = gl_TessLevelOuter == float[4](3.0, 2.0, 4.0, 5.0) &&
34 gl_TessLevelInner == float[2](6.0, 7.0) ?
35 vec4(0.0, 1.0, 0.0, 1.0) : vec4(1.0, 0.0, 0.0, 1.0);
48 clear color 0.1 0.1 0.1 0.1
50 patch parameter vertices 1
51 draw arrays GL_PATCHES 0 1
52 probe all rgba 0.0 1.0 0.0 1.0