3 GL_ARB_tessellation_shader
5 [vertex shader passthrough]
6 [tessellation evaluation shader]
7 #extension GL_ARB_tessellation_shader : require
12 pos = gl_in[0].gl_Position.xy * gl_TessCoord[0] +
13 gl_in[1].gl_Position.xy * gl_TessCoord[1] +
14 gl_in[2].gl_Position.xy * gl_TessCoord[2];
19 layout(triangle_strip, max_vertices = 3) out;
23 gl_Position = vec4(pos[0], 0, 1);
25 gl_Position = vec4(pos[1], 0, 1);
27 gl_Position = vec4(pos[2], 0, 1);
35 gl_FragColor = vec4(0, 1, 0, 0);
49 patch parameter default level outer 1 1 1 1
50 patch parameter default level inner 1 1
52 clear color 0.5 0.5 0.5 1.0
54 patch parameter vertices 3
55 draw arrays GL_PATCHES 0 6
56 probe all rgba 0 1 0 0