summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2019-08-31 15:03:55 -0700
committerclayjohn <claynjohn@gmail.com>2019-09-30 08:04:31 -0700
commit82f63633d187013cbcd0f3b74549ad0453a879e0 (patch)
tree6064f1bc93e61e009f83e8e79977b2b34def9891 /scene
parentc9e1aced53929159f3deaba21df258c991e7ef7f (diff)
Implement DOF blur, Glow, and BCS in GLES2
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/environment.cpp9
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;