Collapse
In this task, you will create a diagonal line that extends from the top-left corner to the bottom-right corner. The fragment shader currently displays a diagonal line extending from the top-right corner to the bottom-left corner.
Modify the conditional with the if
statement to determine whether each pixel is within the
defined range of the diagonal line. Pixels that meet the condition should be colored black, while the rest
of the screen should remain white.
By the end, the screen should display a black diagonal line of your specified width against a white background.
No Account