This leaves some of the unresolved case where we still need both implementation.
13 lines
179 B
GLSL
13 lines
179 B
GLSL
|
|
void main()
|
|
{
|
|
float phase = mod((gl_FragCoord.x + gl_FragCoord.y), (size1 + size2));
|
|
|
|
if (phase < size1) {
|
|
fragColor = color1;
|
|
}
|
|
else {
|
|
fragColor = color2;
|
|
}
|
|
}
|