]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 a568885d484fec70d1dd694e587c8da2d51b4cb0..33b760ec66dddf2f0f640ca0db6ee680e49f9306 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"