]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
diffusenormal lighting was backwards (thanks to Electro for pointing this out)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Aug 2003 08:30:23 +0000 (08:30 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Aug 2003 08:30:23 +0000 (08:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3409 d7cf8633-e32d-0410-b094-e92efae38249

r_light.c

index 273c3dc1322cffed931e489f70cde284b7ab793c..bd1bf3a8e00841b28bd769a5846937432c345c53 100644 (file)
--- a/r_light.c
+++ b/r_light.c
@@ -551,7 +551,7 @@ void R_LightModel_CalcVertexColors(const float *ambientcolor4f, const float *dif
                // silly directional diffuse shading
                if (usediffuse)
                {
-                       dot = DotProduct(normal3f, dnormal);
+                       dot = -DotProduct(normal3f, dnormal);
                        if (dot > 0)
                                VectorMA(color, dot, diffusecolor, color);
                }