diff options
Diffstat (limited to 'shader.frag')
-rw-r--r-- | shader.frag | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shader.frag b/shader.frag index f417dc1..082d27b 100644 --- a/shader.frag +++ b/shader.frag @@ -1,8 +1,9 @@ -#version 330 core +#version 460 core uniform float test; +layout(location = 0) out vec4 color; void main() { vec2 uv = gl_FragCoord.xy / ivec2(800, 600); - gl_FragColor = vec4(uv.xy, test, 1.0); + color = vec4(uv.xy, test, 1.0); } |