Write a GLSL program that draws a diagonal line from the bottom left corner of the texture to the top right corner. The line should have a width of 0.2
in normalized coordinates and be colored in (1.0, 0.3, 0.3)
. Additionally, ensure that the line is limited to values between 0.25
and 0.75
in Y coordinate.
The shader should avoid using branching or conditional statements in its code.