diff options
author | Juan Linietsky <reduzio@gmail.com> | 2020-10-18 19:27:51 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-18 19:27:51 -0300 |
commit | 53d5a252bb3bab85b9518054893fea9563707a4b (patch) | |
tree | 4b2d613284d25c8a1c4d22b58d6d2b47653f2bcb /scene/resources/environment.h | |
parent | d98261ab8f57e5354d6235f1b9929ff3b4708486 (diff) |
Revert "Replace SAO implementation with MSSAO"
Diffstat (limited to 'scene/resources/environment.h')
-rw-r--r-- | scene/resources/environment.h | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/scene/resources/environment.h b/scene/resources/environment.h index 8c69ee0f31..9b7247b58d 100644 --- a/scene/resources/environment.h +++ b/scene/resources/environment.h @@ -70,6 +70,13 @@ public: TONE_MAPPER_ACES, }; + enum SSAOBlur { + SSAO_BLUR_DISABLED, + SSAO_BLUR_1x1, + SSAO_BLUR_2x2, + SSAO_BLUR_3x3, + }; + enum SDFGICascades { SDFGI_CASCADES_4, SDFGI_CASCADES_6, @@ -140,11 +147,13 @@ private: // SSAO bool ssao_enabled = false; - float ssao_rejection_radius = 2.5; + float ssao_radius = 1.0; float ssao_intensity = 1.0; - int ssao_levels = 3; + float ssao_bias = 0.01; float ssao_direct_light_affect = 0.0; float ssao_ao_channel_affect = 0.0; + SSAOBlur ssao_blur = SSAO_BLUR_3x3; + float ssao_edge_sharpness = 4.0; void _update_ssao(); // SDFGI @@ -281,17 +290,20 @@ public: // SSAO void set_ssao_enabled(bool p_enabled); bool is_ssao_enabled() const; - void set_ssao_rejection_radius(float p_rejection_radius); - float get_ssao_rejection_radius() const; + void set_ssao_radius(float p_radius); + float get_ssao_radius() const; void set_ssao_intensity(float p_intensity); float get_ssao_intensity() const; - void set_ssao_levels(int p_levels); - int get_ssao_levels() const; - + void set_ssao_bias(float p_bias); + float get_ssao_bias() const; void set_ssao_direct_light_affect(float p_direct_light_affect); float get_ssao_direct_light_affect() const; void set_ssao_ao_channel_affect(float p_ao_channel_affect); float get_ssao_ao_channel_affect() const; + void set_ssao_blur(SSAOBlur p_blur); + SSAOBlur get_ssao_blur() const; + void set_ssao_edge_sharpness(float p_edge_sharpness); + float get_ssao_edge_sharpness() const; // SDFGI void set_sdfgi_enabled(bool p_enabled); @@ -401,6 +413,7 @@ VARIANT_ENUM_CAST(Environment::BGMode) VARIANT_ENUM_CAST(Environment::AmbientSource) VARIANT_ENUM_CAST(Environment::ReflectionSource) VARIANT_ENUM_CAST(Environment::ToneMapper) +VARIANT_ENUM_CAST(Environment::SSAOBlur) VARIANT_ENUM_CAST(Environment::SDFGICascades) VARIANT_ENUM_CAST(Environment::SDFGIYScale) VARIANT_ENUM_CAST(Environment::GlowBlendMode) |