From 2380b8a00f2120dda13f152c0efd41abae0bc751 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 17 Jun 2017 17:43:47 -0700 Subject: Minor simplification of default fragment shader --- shaders/default.f.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shaders') diff --git a/shaders/default.f.glsl b/shaders/default.f.glsl index efc570d..18c911d 100644 --- a/shaders/default.f.glsl +++ b/shaders/default.f.glsl @@ -8,8 +8,8 @@ void main() { vec2 modifiedCoord = vec2(texcoord.x, (floor(texcoord.y * 512.0) + 0.5)/512.0); gl_FragColor = mix( - texture2D(textures[0], modifiedCoord), texture2D(textures[1], modifiedCoord), - (sin((texcoord.y * 1024.0 + 1.0)* 3.14159265359) + 1.0) * 0.5 + texture2D(textures[0], modifiedCoord), + (sin(texcoord.y * 1024.0 * 3.14159265359) + 1.0) * 0.5 ); } -- cgit v1.2.3