Skip to content

Use different blend func on Mobile for Multiply #108849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lielay9
Copy link
Contributor

@Lielay9 Lielay9 commented Jul 21, 2025

Closes: #96961
(Issue marked for documentation but since a fix is possible I consider this to be a bugfix.)

Title. On forward mobile color values are effectively halved during the blending stage (pure white is 0.5). Due to this, attachments with blend factors involving colors won't look correct. Luckily, in the case of the basic Multiply blend mode, the output can be doubled by multiplying on both sides of the function.

0.5 grey on top of icon (Remember to set tonemap to linear when testing):

Master Mobile Master Forward PR Mobile
Screenshot 2025-07-21 225233 Screenshot 2025-07-21 225151 Screenshot 2025-07-21 225121

Added comment for future so this patchwork can be removed if the behavior changes. (Which would be necessary for implementing any new blend modes, other than min, max or inverse subtract.)

@Lielay9 Lielay9 requested a review from a team as a code owner July 21, 2025 20:12
@Calinou Calinou added this to the 4.6 milestone Jul 21, 2025
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.

Multiply blend darker in Mobile renderer.
2 participants