updated defaults and documentation for GLES2 glow

This commit is contained in:
clayjohn 2019-10-01 07:55:04 -07:00
parent 871a9d5d56
commit afaa68628a
3 changed files with 7 additions and 11 deletions

View file

@ -177,6 +177,7 @@
Enables fog's light transmission. If enabled, lets reflections light to be transmitted by the fog. Enables fog's light transmission. If enabled, lets reflections light to be transmitted by the fog.
</member> </member>
<member name="glow_bicubic_upscale" type="bool" setter="set_glow_bicubic_upscale" getter="is_glow_bicubic_upscale_enabled" default="false"> <member name="glow_bicubic_upscale" type="bool" setter="set_glow_bicubic_upscale" getter="is_glow_bicubic_upscale_enabled" default="false">
Smooths out blockiness created by sampling higher levels.
</member> </member>
<member name="glow_blend_mode" type="int" setter="set_glow_blend_mode" getter="get_glow_blend_mode" enum="Environment.GlowBlendMode" default="2"> <member name="glow_blend_mode" type="int" setter="set_glow_blend_mode" getter="get_glow_blend_mode" enum="Environment.GlowBlendMode" default="2">
Glow blending mode. Glow blending mode.
@ -193,10 +194,10 @@
Bleed scale of the HDR glow. Bleed scale of the HDR glow.
</member> </member>
<member name="glow_hdr_threshold" type="float" setter="set_glow_hdr_bleed_threshold" getter="get_glow_hdr_bleed_threshold" default="1.0"> <member name="glow_hdr_threshold" type="float" setter="set_glow_hdr_bleed_threshold" getter="get_glow_hdr_bleed_threshold" default="1.0">
Bleed threshold of the HDR glow. Bleed threshold of the HDR glow. In GLES2, this needs to be below 1.0 in order for glow to be visible, a default value of 0.9 works well.
</member> </member>
<member name="glow_intensity" type="float" setter="set_glow_intensity" getter="get_glow_intensity" default="0.8"> <member name="glow_intensity" type="float" setter="set_glow_intensity" getter="get_glow_intensity" default="0.8">
Glow intensity. Glow intensity. In GLES2, this should be increased to 1.5 by default to compensate for not using HDR.
</member> </member>
<member name="glow_levels/1" type="bool" setter="set_glow_level" getter="is_glow_level_enabled" default="false"> <member name="glow_levels/1" type="bool" setter="set_glow_level" getter="is_glow_level_enabled" default="false">
First level of glow (most local). First level of glow (most local).
@ -220,7 +221,7 @@
Seventh level of glow (most global). Seventh level of glow (most global).
</member> </member>
<member name="glow_strength" type="float" setter="set_glow_strength" getter="get_glow_strength" default="1.0"> <member name="glow_strength" type="float" setter="set_glow_strength" getter="get_glow_strength" default="1.0">
Glow strength. Glow strength. In GLES2, this should be increased to 1.3 by default to compensate for not using HDR.
</member> </member>
<member name="ss_reflections_depth_tolerance" type="float" setter="set_ssr_depth_tolerance" getter="get_ssr_depth_tolerance" default="0.2"> <member name="ss_reflections_depth_tolerance" type="float" setter="set_ssr_depth_tolerance" getter="get_ssr_depth_tolerance" default="0.2">
</member> </member>

View file

@ -420,11 +420,11 @@ public:
canvas_max_layer(0), canvas_max_layer(0),
glow_enabled(false), glow_enabled(false),
glow_levels((1 << 2) | (1 << 4)), glow_levels((1 << 2) | (1 << 4)),
glow_intensity(1.5), glow_intensity(0.8),
glow_strength(1.3), glow_strength(1.0),
glow_bloom(0.0), glow_bloom(0.0),
glow_blend_mode(VS::GLOW_BLEND_MODE_SOFTLIGHT), glow_blend_mode(VS::GLOW_BLEND_MODE_SOFTLIGHT),
glow_hdr_bleed_threshold(0.9), glow_hdr_bleed_threshold(1.0),
glow_hdr_bleed_scale(2.0), glow_hdr_bleed_scale(2.0),
glow_hdr_luminance_cap(12.0), glow_hdr_luminance_cap(12.0),
glow_bicubic_upscale(false), glow_bicubic_upscale(false),

View file

@ -1374,11 +1374,6 @@ Environment::Environment() :
glow_hdr_luminance_cap = 12.0; glow_hdr_luminance_cap = 12.0;
glow_hdr_bleed_scale = 2.0; glow_hdr_bleed_scale = 2.0;
glow_bicubic_upscale = false; 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_enabled = false;
dof_blur_far_distance = 10; dof_blur_far_distance = 10;