3 GL_ARB_tessellation_shader
15 [tessellation evaluation shader]
16 #extension GL_ARB_tessellation_shader: require
22 gl_Position = gl_in[0].gl_Position * gl_TessCoord[0]
23 + gl_in[1].gl_Position * gl_TessCoord[1]
24 + gl_in[2].gl_Position * gl_TessCoord[2];
25 color = gl_TessLevelOuter[0] == 2.0 &&
26 gl_TessLevelOuter[1] == 4.0 &&
27 gl_TessLevelOuter[2] == 7.0 &&
28 gl_TessLevelInner[0] == 5.0 ?
29 vec4(0.0, 1.0, 0.0, 1.0) : vec4(1.0, 0.0, 0.0, 1.0);
51 clear color 0.1 0.1 0.1 0.1
53 patch parameter vertices 3
54 patch parameter default level outer 2 4 7 6
55 patch parameter default level inner 5 3
56 draw arrays GL_PATCHES 0 6
57 probe all rgba 0.0 1.0 0.0 1.0