You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Apply patch for considering visual layers for DirectionalLight
Co-authored-by: majikayogames <152851004+majikayogames@users.noreply.github.com>
This commit is contained in:
@@ -3089,7 +3089,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user