diff options
| author | clayjohn <claynjohn@gmail.com> | 2020-04-10 02:30:36 -0700 |
|---|---|---|
| committer | clayjohn <claynjohn@gmail.com> | 2020-04-10 23:09:17 -0700 |
| commit | 621f6f09a8e1450ad688463e8ea6c874b262edb7 (patch) | |
| tree | 011d38361565836f308e9e812e52dcbec41ce921 /editor/editor_node.cpp | |
| parent | 6a730ffeabe11c4ac3121bb248d1e8480771daf9 (diff) | |
| download | redot-engine-621f6f09a8e1450ad688463e8ea6c874b262edb7.tar.gz | |
Add proper quality settings to soft shadows
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index d8f0a2764a..890ae0f62a 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -374,8 +374,10 @@ void EditorNode::_notification(int p_what) { float sss_scale = GLOBAL_GET("rendering/quality/subsurface_scattering/subsurface_scattering_scale"); float sss_depth_scale = GLOBAL_GET("rendering/quality/subsurface_scattering/subsurface_scattering_depth_scale"); RS::get_singleton()->sub_surface_scattering_set_scale(sss_scale, sss_depth_scale); - RS::ShadowFilter shadow_filter = RS::ShadowFilter(int(GLOBAL_GET("rendering/quality/shadows/filter_mode"))); - RS::get_singleton()->shadow_filter_set(shadow_filter); + RS::ShadowQuality shadows_quality = RS::ShadowQuality(int(GLOBAL_GET("rendering/quality/shadows/soft_shadow_quality"))); + RS::get_singleton()->shadows_quality_set(shadows_quality); + RS::ShadowQuality directional_shadow_quality = RS::ShadowQuality(int(GLOBAL_GET("rendering/quality/directional_shadow/soft_shadow_quality"))); + RS::get_singleton()->directional_shadow_quality_set(directional_shadow_quality); } ResourceImporterTexture::get_singleton()->update_imports(); |
