Skip to content

Commit

Permalink
Merge pull request godotengine#83998 from chybby/83380-soft-shadows
Browse files Browse the repository at this point in the history
Fix reading shadow filter quality from project settings in compatibility
  • Loading branch information
akien-mga committed Oct 26, 2023
2 parents 4113a0c + b9446dd commit c5c90fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gles3/rasterizer_scene_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c5c90fd

Please sign in to comment.