Godot Engine – Multi-platform 2D and 3D game engine
Fix sscs_index of directional sscs
LiveTrower71113cf7d749
diff --git a/servers/rendering/renderer_rd/storage_rd/light_storage.cpp b/servers/rendering/renderer_rd/storage_rd/light_storage.cppindex d8c5018a418..9c4e7533751 100644--- a/servers/rendering/renderer_rd/storage_rd/light_storage.cpp+++ b/servers/rendering/renderer_rd/storage_rd/light_storage.cpp@@ -798,7 +798,9 @@ void LightStorage::update_light_buffers(RenderDataRD *p_render_data, const Pagedlight_data.shadow_opacity = (p_using_shadows && light->shadow)? light->param[RSE::LIGHT_PARAM_SHADOW_OPACITY]: 0.0;- light_data.sscs_index = light->allow_contact_shadows ? directional_contact_shadows_count++ : 0xffffffff;+ light_data.sscs_index = (light->shadow && light->allow_contact_shadows)+ ? directional_contact_shadows_count+++ : 0xffffffff;float angular_diameter = light->param[RSE::LIGHT_PARAM_SIZE];if (angular_diameter > 0.0) {