summaryrefslogtreecommitdiff
path: root/default.f.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'default.f.glsl')
-rw-r--r--default.f.glsl6
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
+ );
}