//Sets all the black squares to one colour, all the white squares to the original / previous colour //There are as many squares on this board as there are pixels. vec4 chess(vec4 interlaceColour) { vec4 returnCol = texture(tex, vec2(1.0 - tex_coord.x, tex_coord.y)); if (logicalXOR(positionX % 2 == 0, positionY % 2 == 0)) returnCol = interlaceColour; return returnCol; }