Skip to content
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

Use premultiplied colours in rendering #6456

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Revert "Fix `SRGBColour` not clamping alpha on multiplication"

59493e3
Select commit
Loading
Failed to load commit list.
Open

Use premultiplied colours in rendering #6456

Revert "Fix `SRGBColour` not clamping alpha on multiplication"
59493e3
Select commit
Loading
Failed to load commit list.
Task list completed / task-list-completed Started 2024-12-23 15:44:19 ago

0 / 1 tasks completed

1 task still to be completed

Details

Required Tasks

Task Status
Closes #3429 Incomplete
Closes ppy/osu#19957 Incomplete
Update iOS code after #6470 Incomplete
PremultipliedImage: Exposes an image with alpha multiplication applied. The image may originally be in straight-alpha form converted using FromStraight, or already premultiplied (aka iOS) and wrapped in the structure using FromPremultiplied. Incomplete
PremultipliedColour: Exposes a Color4 with alpha multiplication applied. Works similar to PremultipliedImage. Incomplete
UniformColour: Special version of UniformVector4 for colours specifically, stores colours as premultiplied. Implicitly converts from/to PremultipliedColour. Incomplete
UniformColourInfo: This is introduced specifically for border colour specifications, as it was extremely too long and adding premultiplied API warranted this. Incomplete
FromStraight, which accepts colours that are not multiplied by alpha yet Incomplete
FromPremultiplied, which accepts colours that have been multiplied already Incomplete