From 27eb6b37f9b2a9b0c05770475fb28f8792fcf5c5 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Mon, 28 Oct 2013 23:50:28 -0700 Subject: 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. --- shaders/default.f.glsl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 shaders/default.f.glsl (limited to 'shaders/default.f.glsl') 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 + ); +} -- cgit v1.2.3