diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-04-02 17:17:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 17:17:27 +0200 |
commit | 6a38ce1b318cc71c285c11f5b52f04a681c309fd (patch) | |
tree | f16e04c87a3da3bd59db6aff9ea27d30ae753352 /editor/editor_node.cpp | |
parent | cf912a039eaff953655511708964b126f85f7950 (diff) | |
parent | 87c658b3041b86557d0131ffb3e187a60c3e9af0 (diff) | |
download | redot-engine-6a38ce1b318cc71c285c11f5b52f04a681c309fd.tar.gz |
Merge pull request #37512 from reduz/implement-ssr
Re-Added screen space reflection.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 06968f820b..aeb3737120 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -365,9 +365,10 @@ void EditorNode::_notification(int p_what) { RS::get_singleton()->camera_effects_set_dof_blur_quality(dof_quality, dof_jitter); RS::get_singleton()->environment_set_ssao_quality(RS::EnvironmentSSAOQuality(int(GLOBAL_GET("rendering/quality/ssao/quality"))), GLOBAL_GET("rendering/quality/ssao/half_size")); RS::get_singleton()->screen_space_roughness_limiter_set_active(GLOBAL_GET("rendering/quality/filters/screen_space_roughness_limiter"), GLOBAL_GET("rendering/quality/filters/screen_space_roughness_limiter_curve")); - bool glow_bicubic = int(GLOBAL_GET("rendering/quality/glow/upscale_mode")) > 0; RS::get_singleton()->environment_glow_set_use_bicubic_upscale(glow_bicubic); + RS::EnvironmentSSRRoughnessQuality ssr_roughness_quality = RS::EnvironmentSSRRoughnessQuality(int(GLOBAL_GET("rendering/quality/screen_space_reflection/roughness_quality"))); + RS::get_singleton()->environment_set_ssr_roughness_quality(ssr_roughness_quality); } ResourceImporterTexture::get_singleton()->update_imports(); |