Mercurial > repos > blastem
view shaders/default.f.glsl @ 1559:098c11aaf8f0
Fix silly bug in handling of Mac Roman font names. Make Mac font search more exhaustive if the faster prefix check fails. Added a bunch of debug printfs in case those aren't sufficient to get things working on other machines
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 04 Apr 2018 00:01:17 -0700 |
parents | 957325c990d5 |
children | fa9ae059e4d3 |
line wrap: on
line source
#version 110 uniform sampler2D textures[2]; varying vec2 texcoord; void main() { vec2 modifiedCoord0 = vec2(texcoord.x, (floor(texcoord.y * 512.0 + 0.25) + 0.5)/512.0); vec2 modifiedCoord1 = vec2(texcoord.x, (floor(texcoord.y * 512.0 - 0.25) + 0.5)/512.0); gl_FragColor = mix( texture2D(textures[1], modifiedCoord1), texture2D(textures[0], modifiedCoord0), (sin(texcoord.y * 1024.0 * 3.14159265359) + 1.0) * 0.5 ); }