You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Environment: Refactor code for readability + more
- Makes all boolean setters/getters consistent. - Fixes bug where `glow_hdr_bleed_scale` was not used. - Split CameraEffects to their own source file. - Reorder all Environment method and properties declarations, definitions and bindings to be consistent with each other and with the order of property bindings. - Bind missing enum values added with SDFGI. - Remove unused SDFGI enhance_ssr boolean. - Sync doc changes after SDFGI merge and other misc changes.
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "core/project_settings.h"
|
||||
#include "rasterizer_rd.h"
|
||||
#include "servers/rendering/rendering_server_raster.h"
|
||||
|
||||
uint64_t RasterizerSceneRD::auto_exposure_counter = 2;
|
||||
|
||||
void get_vogel_disk(float *r_kernel, int p_sample_count) {
|
||||
@@ -2826,7 +2827,7 @@ void RasterizerSceneRD::environment_glow_set_use_bicubic_upscale(bool p_enable)
|
||||
glow_bicubic_upscale = p_enable;
|
||||
}
|
||||
|
||||
void RasterizerSceneRD::environment_set_sdfgi(RID p_env, bool p_enable, RS::EnvironmentSDFGICascades p_cascades, float p_min_cell_size, RS::EnvironmentSDFGIYScale p_y_scale, bool p_use_occlusion, bool p_use_multibounce, bool p_read_sky, bool p_enhance_ssr, float p_energy, float p_normal_bias, float p_probe_bias) {
|
||||
void RasterizerSceneRD::environment_set_sdfgi(RID p_env, bool p_enable, RS::EnvironmentSDFGICascades p_cascades, float p_min_cell_size, RS::EnvironmentSDFGIYScale p_y_scale, bool p_use_occlusion, bool p_use_multibounce, bool p_read_sky, float p_energy, float p_normal_bias, float p_probe_bias) {
|
||||
Environent *env = environment_owner.getornull(p_env);
|
||||
ERR_FAIL_COND(!env);
|
||||
|
||||
@@ -2836,7 +2837,6 @@ void RasterizerSceneRD::environment_set_sdfgi(RID p_env, bool p_enable, RS::Envi
|
||||
env->sdfgi_use_occlusion = p_use_occlusion;
|
||||
env->sdfgi_use_multibounce = p_use_multibounce;
|
||||
env->sdfgi_read_sky_light = p_read_sky;
|
||||
env->sdfgi_enhance_ssr = p_enhance_ssr;
|
||||
env->sdfgi_energy = p_energy;
|
||||
env->sdfgi_normal_bias = p_normal_bias;
|
||||
env->sdfgi_probe_bias = p_probe_bias;
|
||||
|
||||
Reference in New Issue
Block a user