From c026f83acd9d69b6f8cc1196adf47628666a5e57 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 26 Oct 2024 20:12:14 -0400 Subject: animation --- balls.vert | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'balls.vert') diff --git a/balls.vert b/balls.vert index fc00b1d..8313b06 100644 --- a/balls.vert +++ b/balls.vert @@ -1,15 +1,8 @@ #version 130 -in vec3 in_coords; -in vec3 in_color; -out vec3 new_color; +in vec4 in_coords; -void main(void) { - new_color = in_color; - mat3x3 rot_matrix = mat3x3( - 0.707, 0.641, -0.299, - -0.707, 0.641, -0.299, - -0.000, 0.423, 0.906); - vec3 coords = rot_matrix * in_coords; - gl_Position = vec4(coords, 1.0); +void +main(void) { + gl_Position = in_coords; } -- cgit v1.2.3