parent
28c85922b1
commit
839083789a
1 changed files with 4 additions and 3 deletions
|
@ -1473,9 +1473,10 @@ void VisualServerScene::_render_scene(const Transform p_cam_transform, const Cam
|
||||||
|
|
||||||
//check shadow..
|
//check shadow..
|
||||||
|
|
||||||
if (light && p_shadow_atlas.is_valid() && VSG::storage->light_has_shadow(E->get()->base)) {
|
if (light) {
|
||||||
lights_with_shadow[directional_shadow_count++] = E->get();
|
if (p_shadow_atlas.is_valid() && VSG::storage->light_has_shadow(E->get()->base)) {
|
||||||
|
lights_with_shadow[directional_shadow_count++] = E->get();
|
||||||
|
}
|
||||||
//add to list
|
//add to list
|
||||||
directional_light_ptr[directional_light_count++] = light->instance;
|
directional_light_ptr[directional_light_count++] = light->instance;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue