diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-10-27 21:41:21 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-10-27 21:41:21 -0700 |
commit | b5e181c3f87201b95e6b6e6b96de2ac15ed35f35 (patch) | |
tree | 99346e1d3bd27fe6b9e4ff7249305cb75098ef74 /default.f.glsl | |
parent | 7b604db493ad6663b864a5d1b9f509118f9860b2 (diff) |
Support interlace mode with OpenGL backend
--HG--
branch : opengl
Diffstat (limited to 'default.f.glsl')
-rw-r--r-- | default.f.glsl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/default.f.glsl b/default.f.glsl index 55b6c52..f7bb89a 100644 --- a/default.f.glsl +++ b/default.f.glsl @@ -6,5 +6,9 @@ varying vec2 texcoord; void main() { - gl_FragColor = texture2D(textures[0], texcoord); + gl_FragColor = mix( + texture2D(textures[0], texcoord), + texture2D(textures[1], vec2(texcoord.x, texcoord.y - 1.0/512.0)), + sin((texcoord.y * 512.0 - 0.75) * 3.14159265359) / 2.0 + 0.5 + ); } |