summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-04-01 23:24:52 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-04-02 11:25:21 -0300
commit87c658b3041b86557d0131ffb3e187a60c3e9af0 (patch)
treee124f61b12422bc1001f6b556b8f717c2d780a1a /editor
parentff14d071ccfdf25b899ab49312ef639da7c71fd6 (diff)
Re-Added screen space reflection.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 37f78434df..ae12d59f9a 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();