Skip to content

Commit 1a75fbd

Browse files
author
majikayogames
committed
fix directional lights not being culled by camera
1 parent 46dc277 commit 1a75fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/rendering/renderer_scene_cull.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3051,7 +3051,7 @@ void RendererSceneCull::_render_scene(const RendererSceneRender::CameraData *p_c
30513051
Vector<Instance *> lights_with_shadow;
30523052

30533053
for (Instance *E : scenario->directional_lights) {
3054-
if (!E->visible) {
3054+
if (!E->visible || !(E->layer_mask & p_visible_layers)) {
30553055
continue;
30563056
}
30573057

0 commit comments

Comments
 (0)