From c96bd8d64e8acf4558e00a35ec702f66f09ff061 Mon Sep 17 00:00:00 2001 From: curaga Date: Thu, 22 Aug 2013 15:44:56 +0000 Subject: [PATCH] Make gum_shield.frag compile git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13550 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/shaders/gum_shield.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/shaders/gum_shield.frag b/data/shaders/gum_shield.frag index 0a6a9a211..f6b3f5cf0 100644 --- a/data/shaders/gum_shield.frag +++ b/data/shaders/gum_shield.frag @@ -13,8 +13,8 @@ void main() { float inter = dot(normal, eyeVec); float m = texture2D(tex, vec2(0.5, uv.y)).r; - inter = 1 - inter; - float alpha = inter + 1;// * m; + inter = 1.0 - inter; + float alpha = inter + 1.0;// * m; gl_FragColor = vec4(0.8, 0.16, 0.48, alpha); }