diff options
author | Juan Linietsky <reduzio@gmail.com> | 2020-04-08 13:59:10 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 13:59:10 -0300 |
commit | 26ecd924cc15c69362cc921235a0e81b5d0c88fd (patch) | |
tree | bb5e59a8705b42c18af1d1d52780839624eab46a /editor/editor_node.cpp | |
parent | b80631a3940cf5112a720a7ac2fcf0dfcb548ba9 (diff) | |
parent | 4ffc0d6b3f15bc1235c94932bf8e462dbaae9426 (diff) |
Merge pull request #37678 from reduz/refactor-shadowmapping
Refactored shadowmapping.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index e7c1eaf777..d8f0a2764a 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -374,6 +374,8 @@ 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); } ResourceImporterTexture::get_singleton()->update_imports(); |