3 GL_ARB_tessellation_shader
5 [vertex shader passthrough]
6 [tessellation evaluation shader]
7 #extension GL_ARB_tessellation_shader : require
15 layout(triangle_strip, max_vertices = 3) out;
18 if (gl_PrimitiveIDIn == 0) {
19 gl_Position = vec4(-1, -1, 0, 1);
21 gl_Position = vec4( 1, -1, 0, 1);
23 gl_Position = vec4(-1, 1, 0, 1);
26 gl_Position = vec4(-1, 1, 0, 1);
28 gl_Position = vec4( 1, -1, 0, 1);
30 gl_Position = vec4( 1, 1, 0, 1);
39 gl_FragColor = vec4(0, 1, 0, 0);
53 patch parameter default level outer 1 1 1 1
54 patch parameter default level inner 1 1
56 clear color 0.5 0.5 0.5 1.0
58 patch parameter vertices 3
59 draw arrays GL_PATCHES 0 6
60 probe all rgba 0 1 0 0