summaryrefslogtreecommitdiff
path: root/data
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
Initial import
Diffstat (limited to 'data')
-rw-r--r--data/angle_addition.vert13
-rw-r--r--data/ellipse.frag8
-rw-r--r--data/explicit_rotation.vert13
-rw-r--r--data/matrix_rotation.vert10
4 files changed, 44 insertions, 0 deletions
diff --git a/data/angle_addition.vert b/data/angle_addition.vert
new file mode 100644
index 0000000..f410305
--- /dev/null
+++ b/data/angle_addition.vert
@@ -0,0 +1,13 @@
+#version 120
+
+attribute vec2 z;
+uniform float rotation_angle;
+
+void main()
+{
+ gl_Position.x = z.x;
+ gl_Position.y = z.y;
+ gl_Position.z = 0.;
+ gl_Position.w = 1.;
+ gl_PointSize = 32.;
+}
diff --git a/data/ellipse.frag b/data/ellipse.frag
new file mode 100644
index 0000000..bf35027
--- /dev/null
+++ b/data/ellipse.frag
@@ -0,0 +1,8 @@
+#version 120
+
+uniform mat2 m = mat2(1.);
+
+void main()
+{
+ gl_FragColor = vec4(1.0);
+}
diff --git a/data/explicit_rotation.vert b/data/explicit_rotation.vert
new file mode 100644
index 0000000..f410305
--- /dev/null
+++ b/data/explicit_rotation.vert
@@ -0,0 +1,13 @@
+#version 120
+
+attribute vec2 z;
+uniform float rotation_angle;
+
+void main()
+{
+ gl_Position.x = z.x;
+ gl_Position.y = z.y;
+ gl_Position.z = 0.;
+ gl_Position.w = 1.;
+ gl_PointSize = 32.;
+}
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.;
+}