From: havoc Date: Sun, 13 Jan 2008 08:53:29 +0000 (+0000) Subject: fix typo that broke rtlights on vertex texture blend materials X-Git-Tag: xonotic-v0.1.0preview~2553 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9fa700f2a2bbad678710bf88dd83aade5ab2bb64;p=xonotic%2Fdarkplaces.git fix typo that broke rtlights on vertex texture blend materials git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7954 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 9a4b48ae..6d36bde9 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -767,7 +767,7 @@ static const char *builtinshaderstring = "#ifdef USEDIFFUSE\n" " // get the surface normal and the gloss color\n" "# ifdef USEVERTEXTEXTUREBLEND\n" -" myhalf3 surfacenormal = normalize(mix(myhalf3(texture2D(Texture_SecondaryNormal, TexCoord)), myhalf3(texture2D(Texture_Normal, TexCoord)), terrainblend)) - myhalf3(0.5));\n" +" myhalf3 surfacenormal = normalize(mix(myhalf3(texture2D(Texture_SecondaryNormal, TexCoord)), myhalf3(texture2D(Texture_Normal, TexCoord)), terrainblend) - myhalf3(0.5));\n" "# ifdef USESPECULAR\n" " myhalf3 glosscolor = mix(myhalf3(texture2D(Texture_SecondaryGloss, TexCoord), myhalf3(texture2D(Texture_Gloss, TexCoord)), TexCoord), terrainblend);\n" "# endif\n"