3 GL_ARB_tessellation_shader
7 #extension GL_ARB_gpu_shader_fp64: require
20 blk.vs_var0[0] = dvec4(0.0LF);
21 blk.vs_var0[1] = dvec4(0.25LF);
22 blk.vs_var0[2] = dvec4(0.50LF);
23 blk.vs_var0[3] = dvec4(0.75LF);
24 blk.vs_var0[index] = dvec4(0.0LF, 1.0LF, 0.0LF, 1.0LF);
28 [tessellation control shader]
29 #extension GL_ARB_tessellation_shader: require
30 #extension GL_ARB_gpu_shader_fp64: require
31 layout(vertices = 3) out;
41 gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
42 gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 0.0);
43 gl_TessLevelInner = float[2](0.0, 0.0);
45 color[gl_InvocationID] = vec4(blk[gl_InvocationID].vs_var0[index]);
49 [tessellation evaluation shader]
50 #extension GL_ARB_tessellation_shader: require
51 #extension GL_ARB_gpu_shader_fp64: require
58 gl_Position = gl_in[0].gl_Position * gl_TessCoord[0]
59 + gl_in[1].gl_Position * gl_TessCoord[1]
60 + gl_in[2].gl_Position * gl_TessCoord[2];
62 fs_color = vec4(color[0]);
67 #extension GL_ARB_gpu_shader_fp64: require
72 gl_FragColor = fs_color;
85 clear color 0.1 0.1 0.1 0.1
87 patch parameter vertices 3
90 draw arrays GL_PATCHES 0 6
91 probe all rgba 0.0 1.0 0.0 1.0
94 draw arrays GL_PATCHES 0 6
95 probe all rgba 0.0 1.0 0.0 1.0
98 draw arrays GL_PATCHES 0 6
99 probe all rgba 0.0 1.0 0.0 1.0
102 draw arrays GL_PATCHES 0 6
103 probe all rgba 0.0 1.0 0.0 1.0