summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-10-17 21:18:11 -0700
committerMatt Turner <mattst88@gmail.com>2012-10-17 21:18:11 -0700
commitdd8fd986e62e001a7119245a8e6de3e545121635 (patch)
tree24e79aea509921b5447e66a0e7cbcc4ac8e6c7b7 /data
Initial import
Diffstat (limited to 'data')
-rw-r--r--data/simple.frag6
-rw-r--r--data/simple.vert11
2 files changed, 17 insertions, 0 deletions
diff --git a/data/simple.frag b/data/simple.frag
new file mode 100644
index 0000000..abdaed5
--- /dev/null
+++ b/data/simple.frag
@@ -0,0 +1,6 @@
+varying vec4 color;
+
+void main(void)
+{
+ gl_FragColor = color;
+}
diff --git a/data/simple.vert b/data/simple.vert
new file mode 100644
index 0000000..5987379
--- /dev/null
+++ b/data/simple.vert
@@ -0,0 +1,11 @@
+uniform mat4 mvp;
+
+attribute vec4 vert_color;
+
+varying vec4 color;
+
+void main(void)
+{
+ gl_Position = mvp * gl_Vertex;
+ color = abs(vert_color);
+}