ShaderDojo

Problems Discussion Profile

Red to Green Screen

Collapse

In the example, you see a green screen. However, the fragment shader below is currently displaying a red screen by setting gl_FragColor to a red color.

Your task is to modify the fragment shader to display a green screen instead. This involves changing the color values in gl_FragColor to produce a green output.

Remember, colors in GLSL are represented as vec4(r, g, b, a), where each component ranges from 0.0 to 1.0. To create a green screen, you need to set the green component to 1.0 and the red and blue components to 0.0.

Fetching Status...

×