From b6116ff42a740fe258c45ca5ee21fa93ab9306fc Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 23 Apr 2016 00:26:07 -0600 Subject: [PATCH] light: don't skip light-behind-plane test for phong shaded faces anymore --- light/ltface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/light/ltface.c b/light/ltface.c index 2f719ff4..28be7f5b 100644 --- a/light/ltface.c +++ b/light/ltface.c @@ -1235,7 +1235,6 @@ LightFace_Entity(const bsp2_t *bsp, vec_t planedist, add, angle, spotscale; lightsample_t *sample; lightmap_t *lightmap; - qboolean curved = lightsurf->curved; /* vis cull */ if (VisCullEntity(bsp, lightsurf, entity)) { @@ -1245,7 +1244,7 @@ LightFace_Entity(const bsp2_t *bsp, planedist = DotProduct(entity->origin, plane->normal) - plane->dist; /* don't bother with lights behind the surface */ - if (planedist < 0 && !curved) + if (planedist < 0) return; /* sphere cull surface and light */