Source

LWJGL Shader Tutorials / src / main / java / com / ra4king / opengl / arcsynthesis / gl33 / chapter2 / example1 / example2.1.frag

Full commit
#version 330

out vec4 outputColor;

void main()
{
    float lerpValue = gl_FragCoord.y / 600.0;
        
    outputColor = mix(vec4(1.0, 1.0, 1.0, 1.0), vec4(0.2, 0.2, 0.2, 1.0), lerpValue);
}