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
This commit is contained in:
curaga 2013-08-22 15:44:56 +00:00
parent 5d7e846969
commit c96bd8d64e

View File

@ -13,8 +13,8 @@ void main()
{ {
float inter = dot(normal, eyeVec); float inter = dot(normal, eyeVec);
float m = texture2D(tex, vec2(0.5, uv.y)).r; float m = texture2D(tex, vec2(0.5, uv.y)).r;
inter = 1 - inter; inter = 1.0 - inter;
float alpha = inter + 1;// * m; float alpha = inter + 1.0;// * m;
gl_FragColor = vec4(0.8, 0.16, 0.48, alpha); gl_FragColor = vec4(0.8, 0.16, 0.48, alpha);
} }