light: skip vis culling if lighting channels are used

This commit is contained in:
Eric Wasylishen 2022-12-13 23:54:49 -07:00
parent ccb72a3bf5
commit ff73f13830
1 changed files with 4 additions and 1 deletions

View File

@ -1179,7 +1179,10 @@ static void LightFace_Entity(
const qplane3d *plane = &lightsurf->plane; const qplane3d *plane = &lightsurf->plane;
/* vis cull */ /* vis cull */
if (light_options.visapprox.value() == visapprox_t::VIS && VisCullEntity(bsp, lightsurf->pvs, entity->leaf)) { if (light_options.visapprox.value() == visapprox_t::VIS
&& entity->light_channel_mask.value() == CHANNEL_MASK_DEFAULT
&& entity->shadow_channel_mask.value() == CHANNEL_MASK_DEFAULT
&& VisCullEntity(bsp, lightsurf->pvs, entity->leaf)) {
return; return;
} }