diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-10-26 20:12:14 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-10-26 20:12:14 -0400 |
| commit | c026f83acd9d69b6f8cc1196adf47628666a5e57 (patch) | |
| tree | 903a36267666b06a829a9805b7e94e15b42e8580 /balls.vert | |
| parent | eef1190e6a8e296e5ac4f19e44078006c82f97b8 (diff) | |
| download | balls-c026f83acd9d69b6f8cc1196adf47628666a5e57.zip | |
animation
Diffstat (limited to 'balls.vert')
| -rw-r--r-- | balls.vert | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -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; } |