Skip to content

Commit

Permalink
Merge pull request #88612 from BastiaanOlij/gles_glow_factor
Browse files Browse the repository at this point in the history
Change glow calculation back to max(r,g,b)
  • Loading branch information
akien-mga authored Feb 21, 2024
2 parents 652438a + c2a4657 commit e91438c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gles3/shaders/effects/glow.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ void main() {
#endif // USE_MULTIVIEW
color /= luminance_multiplier * 8.0;

float luminance = dot(color, vec3(0.2126, 0.7152, 0.0722));
float feedback = max(smoothstep(glow_hdr_threshold, glow_hdr_threshold + glow_hdr_scale, luminance), glow_bloom);
float feedback_factor = max(color.r, max(color.g, color.b));
float feedback = max(smoothstep(glow_hdr_threshold, glow_hdr_threshold + glow_hdr_scale, feedback_factor), glow_bloom);

color = min(color * feedback, vec3(glow_luminance_cap));

Expand Down

0 comments on commit e91438c

Please sign in to comment.