summaryrefslogtreecommitdiff
path: root/shaders/default.f.glsl
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-10-28 23:50:28 -0700
committerMike Pavone <pavone@retrodev.com>2013-10-28 23:50:28 -0700
commit27eb6b37f9b2a9b0c05770475fb28f8792fcf5c5 (patch)
treea739d981425bcc2cce8836349e62dc047a1ae295 /shaders/default.f.glsl
parent94eea1e7324e6599decb73b78d13b111dd5b2621 (diff)
Move shader files to their own directory. Read shaders from /.config/blastem/shaders or from path_to_exe/shaders instead of the current working directory.
Diffstat (limited to 'shaders/default.f.glsl')
-rw-r--r--shaders/default.f.glsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/shaders/default.f.glsl b/shaders/default.f.glsl
new file mode 100644
index 0000000..f7bb89a
--- /dev/null
+++ b/shaders/default.f.glsl
@@ -0,0 +1,14 @@
+#version 110
+
+uniform sampler2D textures[2];
+
+varying vec2 texcoord;
+
+void main()
+{
+ gl_FragColor = mix(
+ texture2D(textures[0], texcoord),
+ texture2D(textures[1], vec2(texcoord.x, texcoord.y - 1.0/512.0)),
+ sin((texcoord.y * 512.0 - 0.75) * 3.14159265359) / 2.0 + 0.5
+ );
+}