Mercurial > repos > blastem
comparison default.f.glsl @ 492:dffc07104b09
Merged OpenGL branch
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 27 Oct 2013 22:08:02 -0700 |
parents | e97b80e3bd76 |
children |
comparison
equal
deleted
inserted
replaced
486:db5880d8ea03 | 492:dffc07104b09 |
---|---|
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 } |