4 GL_ARB_tessellation_shader
16 [tessellation evaluation shader]
17 #extension GL_ARB_tessellation_shader: require
23 gl_Position = vec4(gl_TessCoord.xy * 2 - 1, 0, 1);
24 color = gl_TessLevelOuter[0] == 2.0 &&
25 gl_TessLevelOuter[1] == 4.0 &&
26 gl_TessLevelOuter[2] == 7.0 &&
27 gl_TessLevelOuter[3] == 6.0 &&
28 gl_TessLevelInner[0] == 5.0 &&
29 gl_TessLevelInner[1] == 3.0 ?
30 vec4(0.0, 1.0, 0.0, 1.0) : vec4(1.0, 0.0, 0.0, 1.0);
52 clear color 0.1 0.1 0.1 0.1
56 patch parameter vertices 4
57 patch parameter default level outer 2 4 7 6
58 patch parameter default level inner 5 3
59 draw arrays GL_PATCHES 0 6
62 # make sure we haven't drawn anything yet
63 probe all rgba 0.1 0.1 0.1 0.1
65 # Set wrong patch param to make sure the call list is respected
66 patch parameter default level outer 1 3 5 2
67 patch parameter default level inner 6 4
70 probe all rgba 0.0 1.0 0.0 1.0
73 clear color 0.1 0.1 0.1 0.1
76 newlist GL_COMPILE_AND_EXECUTE
77 patch parameter vertices 4
78 patch parameter default level outer 2 4 7 6
79 patch parameter default level inner 5 3
80 draw arrays GL_PATCHES 0 6
83 probe all rgba 0.0 1.0 0.0 1.0