From ff73f138304f0f7cac1d75f5b2a20eac3ca78fd5 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 13 Dec 2022 23:54:49 -0700 Subject: [PATCH] light: skip vis culling if lighting channels are used --- light/ltface.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/light/ltface.cc b/light/ltface.cc index cadb1036..81d57347 100644 --- a/light/ltface.cc +++ b/light/ltface.cc @@ -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; }