From: havoc Date: Sat, 23 Aug 2003 08:30:23 +0000 (+0000) Subject: diffusenormal lighting was backwards (thanks to Electro for pointing this out) X-Git-Tag: xonotic-v0.1.0preview~6422 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=9eb1aaf7495531c6707fa24e5a35d82a6ecbfa55;p=xonotic%2Fdarkplaces.git diffusenormal lighting was backwards (thanks to Electro for pointing this out) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3409 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_light.c b/r_light.c index 273c3dc1..bd1bf3a8 100644 --- 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); }