Skip to content

Divide screen texture by luminance multiplier in compatibility#110004

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
Kaleb-Reid:divide-luminance
Oct 6, 2025
Merged

Divide screen texture by luminance multiplier in compatibility#110004
Repiteo merged 1 commit into
godotengine:masterfrom
Kaleb-Reid:divide-luminance

Conversation

@Kaleb-Reid

Copy link
Copy Markdown
Contributor

Mobile and compatibility both use a luminance multiplier for glow, which has the side effect of making the screen texture dark.

Mobile already worked around this by transparently adding in an extra multiplication when sampling the texture in a shader, but compatibility for some reason didn't.

Fixes #107552

@Kaleb-Reid Kaleb-Reid requested a review from a team as a code owner August 27, 2025 04:34
@Chaosus Chaosus added this to the 4.5 milestone Aug 27, 2025
@Repiteo Repiteo modified the milestones: 4.5, 4.6 Sep 8, 2025

@clayjohn clayjohn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Kaleb-Reid

Copy link
Copy Markdown
Contributor Author

@clayjohn scene_data is now scene_data_block.data as of today, so I've just fixed that.

@Repiteo Repiteo merged commit d364dac into godotengine:master Oct 6, 2025
20 checks passed
@Repiteo

Repiteo commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

Thanks!

@Kaleb-Reid Kaleb-Reid deleted the divide-luminance branch October 6, 2025 20:21
@clayjohn clayjohn added the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Oct 7, 2025
@akien-mga

Copy link
Copy Markdown
Member

Cherry-picked for 4.5.1.

@akien-mga akien-mga removed the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Oct 8, 2025
@Kaleb-Reid

Copy link
Copy Markdown
Contributor Author

@akien-mga I just realized that this being cherry-picked caused a regression in the 4.5 branch so I made #111438.

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.

Glow in Compatibility makes screen texture very dark

5 participants