mirror of https://github.com/godotengine/godot
Merge pull request #95379 from SlashScreen/fix_dir_light_layers
Consider visual layers for DirectionalLight
This commit is contained in:
commit
94e9b2e2af
|
|
@ -3236,7 +3236,7 @@ void RendererSceneCull::_render_scene(const RendererSceneRender::CameraData *p_c
|
||||||
Vector<Instance *> lights_with_shadow;
|
Vector<Instance *> lights_with_shadow;
|
||||||
|
|
||||||
for (Instance *E : scenario->directional_lights) {
|
for (Instance *E : scenario->directional_lights) {
|
||||||
if (!E->visible) {
|
if (!E->visible || !(E->layer_mask & p_visible_layers)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue