summaryrefslogtreecommitdiffstats
path: root/balls.vert
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-10-26 19:14:59 -0400
committerSam Anthony <sam@samanthony.xyz>2024-10-26 19:14:59 -0400
commit7c6a1d395492e8e26c0c091e83f69f54477f5d15 (patch)
treedff5d213173ca76fd489ee94dee1839971f530ce /balls.vert
parentda60f356e3c6404672cbc35b85b309d21fca896e (diff)
downloadballs-7c6a1d395492e8e26c0c091e83f69f54477f5d15.zip
shaders
Diffstat (limited to 'balls.vert')
-rw-r--r--balls.vert15
1 files changed, 15 insertions, 0 deletions
diff --git a/balls.vert b/balls.vert
new file mode 100644
index 0000000..fc00b1d
--- /dev/null
+++ b/balls.vert
@@ -0,0 +1,15 @@
+#version 130
+
+in vec3 in_coords;
+in vec3 in_color;
+out vec3 new_color;
+
+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);
+}