summaryrefslogtreecommitdiff
path: root/shaders/anholt/18.shader_test
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-03-22 17:29:32 -0700
committerEric Anholt <eric@anholt.net>2013-03-22 17:31:41 -0700
commit3db77a1625bab9ceda10f5fa66e38bbc0e42393f (patch)
tree23bd55d718964b77d1ecde5bf5f096a1f4ba722c /shaders/anholt/18.shader_test
parent8f179dc508736ed25b16e84d2528c225d0ba865c (diff)
anholt: Switch the shaders from my demo to shader_test files.
Diffstat (limited to 'shaders/anholt/18.shader_test')
-rw-r--r--shaders/anholt/18.shader_test24
1 files changed, 24 insertions, 0 deletions
diff --git a/shaders/anholt/18.shader_test b/shaders/anholt/18.shader_test
new file mode 100644
index 0000000..e59381e
--- /dev/null
+++ b/shaders/anholt/18.shader_test
@@ -0,0 +1,24 @@
+[require]
+GLSL >= 1.10
+
+[fragment shader]
+#version 130
+uniform ivec4 color;
+out ivec4 out_color;
+
+void main()
+{
+ out_color = color;
+}
+
+[vertex shader]
+#version 130
+in vec4 position;
+void main()
+{
+ gl_Position = position;
+}
+
+event = 0x0001
+event = 0x0001
+300 frames in 5.40 secs: 55.6 fps