Skip to content

Commit

Permalink
Apply patch for considering visual layers for DirectionalLight
Browse files Browse the repository at this point in the history
Co-authored-by: majikayogames <[email protected]>
  • Loading branch information
SlashScreen and majikayogames committed Aug 13, 2024
1 parent 88f3b5f commit 4457b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/renderer_scene_cull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4457b11

Please sign in to comment.