summaryrefslogtreecommitdiff
path: root/shaders/default.f.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/default.f.glsl')
-rw-r--r--shaders/default.f.glsl5
1 files changed, 3 insertions, 2 deletions
diff --git a/shaders/default.f.glsl b/shaders/default.f.glsl
index d5eabf6..efc570d 100644
--- a/shaders/default.f.glsl
+++ b/shaders/default.f.glsl
@@ -6,9 +6,10 @@ varying vec2 texcoord;
void main()
{
+ vec2 modifiedCoord = vec2(texcoord.x, (floor(texcoord.y * 512.0) + 0.5)/512.0);
gl_FragColor = mix(
- texture2D(textures[0], texcoord),
- texture2D(textures[1], vec2(texcoord.x, texcoord.y - 0.5/1024.0)),
+ texture2D(textures[0], modifiedCoord),
+ texture2D(textures[1], modifiedCoord),
(sin((texcoord.y * 1024.0 + 1.0)* 3.14159265359) + 1.0) * 0.5
);
}