From a3c9f53335cfe591568f9f529d1fe83cdf6e74df Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Tue, 31 Dec 2013 16:26:49 -0500 Subject: [PATCH] GLSL 100 doesn't do automatic type conversions.. (int to float) --- shader/sprite.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shader/sprite.frag b/shader/sprite.frag index 744c9d4..ab50876 100644 --- a/shader/sprite.frag +++ b/shader/sprite.frag @@ -33,7 +33,7 @@ void main() /* Apply bush alpha by mathematical if */ float underBush = float(v_texCoord.y < bushDepth); - frag.a *= clamp(bushOpacity + underBush, 0, 1); + frag.a *= clamp(bushOpacity + underBush, 0.0, 1.0); gl_FragColor = frag; }