summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-06-17 17:43:47 -0700
committerMichael Pavone <pavone@retrodev.com>2017-06-17 17:43:47 -0700
commit2380b8a00f2120dda13f152c0efd41abae0bc751 (patch)
tree0e02d8f56777745f6a428276c90e8016e77b7da4
parent24af3678b264680a694dc19731eb701b1445bbbb (diff)
Minor simplification of default fragment shader
-rw-r--r--shaders/default.f.glsl4
1 files changed, 2 insertions, 2 deletions
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
);
}