blob: 11e026c6decce114f5bdc97f6eba42a7899d2014 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
void main()
{
vec2 phase = mod(gl_FragCoord.xy, (size * 2));
if ((phase.x > size && phase.y < size) || (phase.x < size && phase.y > size)) {
fragColor = color1;
}
else {
fragColor = color2;
}
}
|