Skip to content

Conversation

@allenwp
Copy link
Contributor

@allenwp allenwp commented Nov 18, 2025

Also remove inconsistencies with glow blending code and comments between the two shader files to allow for easier comparison of the two tonemap files.

PR details

These inconsistencies come from the final rebase of #110077 where some differences slipped into tonemap.glsl without making their way into tonemap_mobile.glsl.

It may appear that the code for glow blending with the mix blend mode when using a glow map texture has changed in the Forward+ renderer, but this should be mathematically equivalent to the existing code: clayjohn introduced a nice code simplification to this blending in tonemap_mobile.glsl, so it makes sense to carry this simplification over to tonemap.glsl.

Bug details

The inconsistency of colour clamping can be seen when HDR 2D is disabled and the contrast colour adjustment is used:

Mobile Forward+
Before #110077 image image
master (9c56102) image image

MRP: mobile-colour-clamping.zip

Also remove inconsistencies with glow blending code and comments between the two shader files to allow for easier comparison of the two tonemap files.
@allenwp allenwp added this to the 4.6 milestone Nov 18, 2025
@allenwp allenwp requested a review from a team as a code owner November 18, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant