Change glow calculation back to max(r,g,b)

This commit is contained in:
Bastiaan Olij 2024-02-21 11:33:10 +11:00
parent 652438a395
commit c2a4657a70
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ void main() {
#endif // USE_MULTIVIEW #endif // USE_MULTIVIEW
color /= luminance_multiplier * 8.0; color /= luminance_multiplier * 8.0;
float luminance = dot(color, vec3(0.2126, 0.7152, 0.0722)); float feedback_factor = max(color.r, max(color.g, color.b));
float feedback = max(smoothstep(glow_hdr_threshold, glow_hdr_threshold + glow_hdr_scale, luminance), glow_bloom); 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)); color = min(color * feedback, vec3(glow_luminance_cap));