mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #110077 from clayjohn/mobile-glow
Overhaul and optimize Glow in the mobile renderer
This commit is contained in:
commit
3c1e479290
22 changed files with 1524 additions and 519 deletions
|
|
@ -507,7 +507,7 @@ RS::EnvironmentGlowBlendMode RendererEnvironmentStorage::environment_get_glow_bl
|
|||
|
||||
float RendererEnvironmentStorage::environment_get_glow_hdr_bleed_threshold(RID p_env) const {
|
||||
Environment *env = environment_owner.get_or_null(p_env);
|
||||
ERR_FAIL_NULL_V(env, 1.0);
|
||||
ERR_FAIL_NULL_V(env, 0.0);
|
||||
return env->glow_hdr_bleed_threshold;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ private:
|
|||
float glow_bloom = 0.0;
|
||||
float glow_mix = 0.01;
|
||||
RS::EnvironmentGlowBlendMode glow_blend_mode = RS::ENV_GLOW_BLEND_MODE_SCREEN;
|
||||
float glow_hdr_bleed_threshold = 1.0;
|
||||
float glow_hdr_bleed_threshold = 0.0;
|
||||
float glow_hdr_luminance_cap = 12.0;
|
||||
float glow_hdr_bleed_scale = 2.0;
|
||||
float glow_map_strength = 0.0f; // 1.0f in GLES3 ??
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue