Create a gradient effect that smoothly transitions from red to green. The color change should be most noticeable between the x-coordinates of 0.25
and 0.75
.
The shader should avoid using branching or conditional statements in its code, and instead rely on the smoothstep
and mix
functions to determine the color of each pixel.