summaryrefslogtreecommitdiff
path: root/data/matrix_rotation.vert
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-10-10 18:05:38 -0700
committerMatt Turner <mattst88@gmail.com>2012-10-10 18:05:38 -0700
commit931cfd8280dcedc4e916153e4a6844c55f9a4722 (patch)
treea680597a3a4a5497696ead3fa2ec9b9be55c72fa /data/matrix_rotation.vert
Initial import
Diffstat (limited to 'data/matrix_rotation.vert')
-rw-r--r--data/matrix_rotation.vert10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/matrix_rotation.vert b/data/matrix_rotation.vert
new file mode 100644
index 0000000..af9165d
--- /dev/null
+++ b/data/matrix_rotation.vert
@@ -0,0 +1,10 @@
+#version 120
+
+attribute vec2 z;
+uniform mat2 m = mat2(1.);
+
+void main()
+{
+ gl_Position = vec4(m * z, 0.0, 1.0);
+ gl_PointSize = 32.;
+}