add a missing normalize, fixing gloss issues
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 10 Sep 2008 07:42:36 +0000 (07:42 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 10 Sep 2008 07:42:36 +0000 (07:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8496 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index a568885..33b760e 100644 (file)
@@ -907,7 +907,7 @@ static const char *builtinshaderstring =
 "      // directional model lighting\n"
 "# ifdef USEDIFFUSE\n"
 "      // get the light normal\n"
-"      myhalf3 diffusenormal = myhalf3(LightVector);\n"
+"      myhalf3 diffusenormal = myhalf3(normalize(LightVector));\n"
 "# endif\n"
 "# ifdef USESPECULAR\n"
 "      // calculate directional shading\n"