summaryrefslogtreecommitdiff
path: root/servers/rendering_server.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-05-23 19:10:26 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-02-06 15:28:59 +0100
commit7721e19ccc8d71d0bacb7b57499853a6a3291ffa (patch)
treef7fc533f7f0ba39c179607d2642a69372613bb92 /servers/rendering_server.h
parentfd0d2dcabf5b7418691b693cd01baecbb69fdeb9 (diff)
Tweak default SDFGI settings for better quality
- Enable Read Sky Light to get proper outdoors lighting out of the box. - Set bounce feedback to 0.5 by default to get a better quality result. - Higher values may cause infinite feedback with bright surfaces. - Increase the number of frames to converge to improve quality at the cost of latency. Most scenes are fairly static after all. - Use 75% Y scale by default as most scenes are not highly vertical. - Reorder the Y scale enum to go from the lowest Y scale to the highest. Also rename the "Disabled" setting to "100%" for clarity.
Diffstat (limited to 'servers/rendering_server.h')
-rw-r--r--servers/rendering_server.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering_server.h b/servers/rendering_server.h
index 472fff1bf1..ae07042638 100644
--- a/servers/rendering_server.h
+++ b/servers/rendering_server.h
@@ -1042,9 +1042,9 @@ public:
virtual void environment_set_ssil_quality(EnvironmentSSILQuality p_quality, bool p_half_size, float p_adaptive_target, int p_blur_passes, float p_fadeout_from, float p_fadeout_to) = 0;
enum EnvironmentSDFGIYScale {
- ENV_SDFGI_Y_SCALE_DISABLED,
+ ENV_SDFGI_Y_SCALE_50_PERCENT,
ENV_SDFGI_Y_SCALE_75_PERCENT,
- ENV_SDFGI_Y_SCALE_50_PERCENT
+ ENV_SDFGI_Y_SCALE_100_PERCENT,
};
virtual void environment_set_sdfgi(RID p_env, bool p_enable, int p_cascades, float p_min_cell_size, EnvironmentSDFGIYScale p_y_scale, bool p_use_occlusion, float p_bounce_feedback, bool p_read_sky, float p_energy, float p_normal_bias, float p_probe_bias) = 0;