Merge pull request #95379 from SlashScreen/fix_dir_light_layers

Consider visual layers for DirectionalLight
This commit is contained in:
Rémi Verschelde 2024-08-16 10:35:44 +02:00
commit 94e9b2e2af
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -3236,7 +3236,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;
}