Skip to content

Implement ADD, SUB, 1-TEX ADD and 1-TEX SUB as tint modes#49

Merged
fincs merged 2 commits intodevkitPro:masterfrom
KirbysDarkNebula:master
Nov 27, 2024
Merged

Implement ADD, SUB, 1-TEX ADD and 1-TEX SUB as tint modes#49
fincs merged 2 commits intodevkitPro:masterfrom
KirbysDarkNebula:master

Conversation

@KirbysDarkNebula
Copy link
Contributor

Implements C2D_TintAdd, C2D_TintSub, C2D_TintOneMinusAdd and C2D_TintOneMinusSub, to increase the options for tint operations.

Tint color Original texture
#dd1040
ADD SUB
Normal C2D_TintAdd C2D_TintSub
1 - Texture.RGB C2D_TintOneMinusAdd C2D_TintOneMinusSub

The operations are:
TEXTURE.RGB + TINT.RGB, TEXTURE.RGB - TINT.RGB, 1 - TEXTURE.RGB + TINT.RGB and 1 - TEXTURE.RGB - TINT.RGB

Makes the texture use 1-RGB mode instead of RGB mode for ADD and SUB if the tint function is called with `C2D_TintOneMinusAdd` or `C2D_TintOneMinusSub`
@fincs fincs merged commit 02f82d0 into devkitPro:master Nov 27, 2024
@fincs
Copy link
Member

fincs commented Nov 27, 2024

Thank you for your PR, much appreciated :)

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.

2 participants