From b9446dde7e958d76ee2e2d5156d52b58de098b53 Mon Sep 17 00:00:00 2001 From: Adam Chyb Date: Thu, 26 Oct 2023 00:47:30 +1100 Subject: [PATCH] Fix reading shadow filter quality from project settings in compatibility Fixes #83380. --- drivers/gles3/rasterizer_scene_gles3.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp index 14191a77af6..21e14c1ec95 100644 --- a/drivers/gles3/rasterizer_scene_gles3.cpp +++ b/drivers/gles3/rasterizer_scene_gles3.cpp @@ -3289,6 +3289,9 @@ RasterizerSceneGLES3::RasterizerSceneGLES3() { // Quality settings. use_physical_light_units = GLOBAL_GET("rendering/lights_and_shadows/use_physical_light_units"); + positional_soft_shadow_filter_set_quality((RS::ShadowQuality)(int)GLOBAL_GET("rendering/lights_and_shadows/positional_shadow/soft_shadow_filter_quality")); + directional_soft_shadow_filter_set_quality((RS::ShadowQuality)(int)GLOBAL_GET("rendering/lights_and_shadows/directional_shadow/soft_shadow_filter_quality")); + { // Setup Lights