Mercurial > repos > blastem
comparison shaders/default.f.glsl @ 1184:b1147418254a
Overscan is now configurable
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 18 Jan 2017 23:43:36 -0800 |
parents | 0820a71b80f3 |
children | f9fbd0d16df2 |
comparison
equal
deleted
inserted
replaced
1183:8d8c71ebbbce | 1184:b1147418254a |
---|---|
6 | 6 |
7 void main() | 7 void main() |
8 { | 8 { |
9 gl_FragColor = mix( | 9 gl_FragColor = mix( |
10 texture2D(textures[0], texcoord), | 10 texture2D(textures[0], texcoord), |
11 texture2D(textures[1], vec2(texcoord.x, texcoord.y - 1.0/512.0)), | 11 texture2D(textures[1], vec2(texcoord.x, texcoord.y - 1.0/1024.0)), |
12 sin((texcoord.y * 512.0 - 0.75) * 3.14159265359) / 2.0 + 0.5 | 12 sin((texcoord.y * 1024.0 - 0.75) * 3.14159265359) / 2.0 + 0.5 |
13 ); | 13 ); |
14 } | 14 } |