1 2 3 4 5 6 7 8 9
#version 330 core // uniform sampler2D TexId; out vec4 FragColor; void main() { FragColor = vec4(gl_FragCoord.x/1024.0, gl_FragCoord.y/768.0, 0.0, 1.0f); }