diff options
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) |