Using the max
and step
functions, paint only those pixels whose normalized x-coordinate is less than 0.25
or greater than 0.75
.
The shader should avoid using branching or conditional statements in its code, and instead rely on the step
and max
functions to determine the color of each pixel.