Create 10
equally sized horizontal sections on the screen and label them with sequential numbers from 1
to 10
. Adjust the intensity of the red color in each section based on its assigned number (0.1
, 0.2
... 1.0
). This will result in a gradient effect where the red color becomes progressively stronger from left to right.
The shader should avoid using branching or conditional statements in its code, and instead rely on the ceil
function to determine the color of each pixel.