aboutsummaryrefslogtreecommitdiff
path: root/hello.frag
blob: 291c0f119f8a139851aa3f8bb50373ce9fee7d71 (plain)
1
2
3
4
5
6
7
8
9
#version 330 core

#define WIDTH 800
#define HEIGHT 600

void main() {
	gl_FragColor = vec4(gl_FragCoord.x / WIDTH, gl_FragCoord.y / HEIGHT, 0, 1);
}