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