comparison 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
comparison
equal deleted inserted replaced
496:6fc71114d145 497:0820a71b80f3
1 #version 110
2
3 uniform sampler2D textures[2];
4
5 varying vec2 texcoord;
6
7 void main()
8 {
9 gl_FragColor = mix(
10 texture2D(textures[0], texcoord),
11 texture2D(textures[1], vec2(texcoord.x, texcoord.y - 1.0/512.0)),
12 sin((texcoord.y * 512.0 - 0.75) * 3.14159265359) / 2.0 + 0.5
13 );
14 }