From 2977d4fe128b2bd3ae4f6449cc102a46004fcfd9 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 30 Oct 2024 12:50:34 -0400 Subject: use vec2 in vertex shader --- balls.vert | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'balls.vert') 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); } -- cgit v1.2.3