diff shaders/default.f.glsl @ 497:0820a71b80f3

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.
author Mike Pavone <pavone@retrodev.com>
date Mon, 28 Oct 2013 23:50:28 -0700
parents default.f.glsl@e97b80e3bd76
children b1147418254a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/shaders/default.f.glsl	Mon Oct 28 23:50:28 2013 -0700
@@ -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
+	);
+}