3 #extension GL_ARB_fragment_coord_conventions: require
4 #extension GL_ARB_explicit_attrib_location : enable
7 precision mediump float;
12 layout (origin_upper_left,pixel_center_integer) in vec4 gl_FragCoord;
13 layout (location = 0) out vec4 myColor;
15 const float eps=0.001;
20 if (gl_FragCoord.y >= 10) {
23 if (gl_FragCoord.y == trunc(gl_FragCoord.y)) {
26 if (gl_FragCoord.x == trunc(gl_FragCoord.x)) {
30 vec4 diff = gl_FragCoord - i;