summaryrefslogtreecommitdiffstats
path: root/balls.vert
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-10-30 12:50:34 -0400
committerSam Anthony <sam@samanthony.xyz>2024-10-30 12:50:34 -0400
commit2977d4fe128b2bd3ae4f6449cc102a46004fcfd9 (patch)
tree65ee4c31b17c97dc0eb4915b981716d5976b4bb7 /balls.vert
parent070fc3909cd954def7e70592d222eea29b0ce902 (diff)
downloadballs-2977d4fe128b2bd3ae4f6449cc102a46004fcfd9.zip
use vec2 in vertex shader
Diffstat (limited to 'balls.vert')
-rw-r--r--balls.vert4
1 files changed, 2 insertions, 2 deletions
diff --git a/balls.vert b/balls.vert
index 7d21548..e938786 100644
--- a/balls.vert
+++ b/balls.vert
@@ -1,6 +1,6 @@
#version 130
-in vec4 in_coords;
+in vec2 in_coords;
in vec3 in_color;
out vec3 new_color;
@@ -8,5 +8,5 @@ void
main(void) {
new_color = in_color;
- gl_Position = in_coords;
+ gl_Position = vec4(in_coords, 1.0, 1.0);
}