Apply patch for considering visual layers for DirectionalLight
Co-authored-by: majikayogames <152851004+majikayogames@users.noreply.github.com>
This commit is contained in:
parent
88f3b5f9d5
commit
4457b11ff0
1 changed files with 1 additions and 1 deletions
|
@ -3089,7 +3089,7 @@ void RendererSceneCull::_render_scene(const RendererSceneRender::CameraData *p_c
|
|||
Vector<Instance *> lights_with_shadow;
|
||||
|
||||
for (Instance *E : scenario->directional_lights) {
|
||||
if (!E->visible) {
|
||||
if (!E->visible || !(E->layer_mask & p_visible_layers)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue