light: skip vis culling if lighting channels are used
This commit is contained in:
parent
ccb72a3bf5
commit
ff73f13830
|
|
@ -1179,7 +1179,10 @@ static void LightFace_Entity(
|
|||
const qplane3d *plane = &lightsurf->plane;
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue