1 # Use a clip and cull distances. Never cull, clip triangle 0 between
10 #extension GL_ARB_cull_distance: enable
12 out float gl_CullDistance[1];
13 out float gl_ClipDistance[1];
17 gl_Position = gl_Vertex;
19 gl_CullDistance[0] = 5.0;
20 gl_ClipDistance[0] = gl_VertexID - 1;
28 gl_FragColor = vec4(0, 0, 1, 1);
32 clear color 0.0 1.0 0.0 1.0
37 # Bottom left corner is green because triangle 0 was clipped between
39 relative probe rgba (0.100, 0.100) (0.0, 1.0, 0.0, 1.0)
41 # Top left corner is blue because triangle 0 was clipped between
43 relative probe rgba (0.100, 0.900) (0.0, 0.0, 1.0, 1.0)
45 # Top right corner is blue because triangle 1 was not culled or clipped
46 relative probe rgba (0.900, 0.900) (0.0, 0.0, 1.0, 1.0)