Skip to content

Support loading sprites with pre-multiplied alpha. - #21160

Merged
PunkPun merged 1 commit into
OpenRA:bleedfrom
pchote:premultiplied
Oct 27, 2023
Merged

Support loading sprites with pre-multiplied alpha.#21160
PunkPun merged 1 commit into
OpenRA:bleedfrom
pchote:premultiplied

Conversation

@pchote

@pchote pchote commented Oct 26, 2023

Copy link
Copy Markdown
Member

This PR adds engine support for ISpriteSequence implementations to opt-out of automatic alpha premultiplication. This is important for assets that are already natively premultiplied and otherwise render incorrectly.

Used by OpenRA/TiberianDawnHD@ce297b5 to fix OpenRA/TiberianDawnHD#28.

Comment thread OpenRA.Game/Graphics/SpriteCache.cs
@pchote

pchote commented Oct 27, 2023

Copy link
Copy Markdown
Member Author

Updated.

@PunkPun
PunkPun merged commit 8503678 into OpenRA:bleed Oct 27, 2023
@PunkPun

PunkPun commented Oct 27, 2023

Copy link
Copy Markdown
Member

Changelog

@pchote
pchote deleted the premultiplied branch October 29, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translucent effects have a dark halo

2 participants