1 2 3 4 5 6 7 8 9
#version 330 core uniform float test; void main() { vec2 uv = gl_FragCoord.xy / ivec2(800, 600); gl_FragColor = vec4(uv.xy, test, 1.0); }