Mercurial > repos > blastem
view shaders/default.f.glsl @ 1408:71b6e2298e4a
Better handling of S&K lock on support. Pre-combined ROMs and large (>2MB) S&K hacks should now work. Implemented correct behavior from locking on a 4MB cart
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 19 Jun 2017 19:18:50 -0700 |
parents | 5e4a2ea8219b |
children | 957325c990d5 |
line wrap: on
line source
#version 110 uniform sampler2D textures[2]; varying vec2 texcoord; void main() { vec2 modifiedCoord = vec2(texcoord.x, (floor(texcoord.y * 512.0) + 0.5)/512.0); gl_FragColor = mix( texture2D(textures[1], modifiedCoord), texture2D(textures[0], modifiedCoord), (sin(texcoord.y * 1024.0 * 3.14159265359) + 1.0) * 0.5 ); }