Skip to content

[iOS] fix additive, normal blending#2822

Merged
badlogic merged 2 commits intoEsotericSoftware:4.2from
pbk20191:ios_blending
May 5, 2025
Merged

[iOS] fix additive, normal blending#2822
badlogic merged 2 commits intoEsotericSoftware:4.2from
pbk20191:ios_blending

Conversation

@pbk20191
Copy link
Contributor

@pbk20191 pbk20191 commented Apr 22, 2025

iOS metal blendFactor is not same with other runtime especially for non pma which results in wrong alpha components.

{ srcRgb: GL_SRC_ALPHA, srcRgbPma: GL_ONE, dstRgb: GL_ONE_MINUS_SRC_ALPHA, srcAlpha: GL_ONE },

{ srcRgb: GL_SRC_ALPHA, srcRgbPma: GL_ONE, dstRgb: GL_ONE, srcAlpha: GL_ONE },

		{ srcRgb: GL_SRC_ALPHA, srcRgbPma: GL_ONE, dstRgb: GL_ONE_MINUS_SRC_ALPHA, srcAlpha: GL_ONE },
		{ srcRgb: GL_SRC_ALPHA, srcRgbPma: GL_ONE, dstRgb: GL_ONE, srcAlpha: GL_ONE },

@badlogic badlogic merged commit 123426d into EsotericSoftware:4.2 May 5, 2025
@badlogic
Copy link
Collaborator

badlogic commented May 5, 2025

Sorry it took so long reviewing this. Works as intended, thank you!

@badlogic badlogic mentioned this pull request May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants