3 GL_ARB_tessellation_shader
15 [tessellation evaluation shader]
16 #extension GL_ARB_tessellation_shader: require
22 gl_Position = vec4(gl_TessCoord.xy * 2 - 1, 0, 1);
23 color = gl_TessLevelOuter == float[4](2.0, 4.0, 7.0, 6.0) &&
24 gl_TessLevelInner == float[2](5.0, 3.0) ?
25 vec4(0.0, 1.0, 0.0, 1.0) : vec4(1.0, 0.0, 0.0, 1.0);
47 clear color 0.1 0.1 0.1 0.1
49 patch parameter vertices 1
50 patch parameter default level outer 2 4 7 6
51 patch parameter default level inner 5 3
52 draw arrays GL_PATCHES 0 1
53 probe all rgba 0.0 1.0 0.0 1.0