diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-01 09:21:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 09:21:31 +0200 |
commit | 1f40117caa6ad25340261969d377e1b398cd5349 (patch) | |
tree | 99c92639f58537e81dcc0baaffda9a50b0dcaf6e /scene/resources/environment.cpp | |
parent | a6eeb1a38e1c3e7990f5f236d045f7ff39d72be8 (diff) | |
parent | 82f63633d187013cbcd0f3b74549ad0453a879e0 (diff) |
Merge pull request #31845 from clayjohn/GLES2-BCS
Implement DOF blur, Glow, and BCS in GLES2
Diffstat (limited to 'scene/resources/environment.cpp')
-rw-r--r-- | scene/resources/environment.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index afb7f1102b..2817ec4eb0 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -354,10 +354,6 @@ void Environment::_validate_property(PropertyInfo &property) const { "tonemap_", "ss_reflections_", "ssao_", - "dof_blur_far_", - "dof_blur_near_", - "glow_", - "adjustment_", NULL }; @@ -1378,6 +1374,11 @@ Environment::Environment() : glow_hdr_luminance_cap = 12.0; glow_hdr_bleed_scale = 2.0; glow_bicubic_upscale = false; + if (VisualServer::get_singleton()->is_low_end()) { + glow_hdr_bleed_threshold = 0.9; + glow_intensity = 1.5; + glow_strength = 1.3; + } dof_blur_far_enabled = false; dof_blur_far_distance = 10; |