light: remove hack for lights directly on faces, was breaking phong shading.

This commit is contained in:
Eric Wasylishen 2016-05-28 13:38:12 -06:00
parent 496fc4d52e
commit 92a9369bbc
1 changed files with 4 additions and 1 deletions

View File

@ -1342,7 +1342,10 @@ LightFace_Entity(const bsp2_t *bsp,
angle = -angle; // ericw -- support "_bleed" option
}
}
angle = qmax(0.0f, angle); // light can be behind sample point if the light is right on the face
/* Light behind sample point? Zero contribution, period. */
if (angle < 0)
continue;
/* Check spotlight cone */
spotscale = 1;