Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPre-multiplied alpha for the blend pass #1493
Conversation
|
r? @rlhunt |
| @@ -0,0 +1,10 @@ | |||
| # this tests that opacity combination respets pre-multiplied alpha | |||
This comment has been minimized.
This comment has been minimized.
| items: | ||
| - type: rect | ||
| bounds: [10, 10, 100, 100] | ||
| color: green |
This comment has been minimized.
This comment has been minimized.
|
Thanks for adding tests! |
|
Thanks Ryan! |
|
|
|
Hmm, maybe the extra space got in the way, trying again: |
|
|
|
Pre-multiplied alpha for the blend pass Fixes #1449, fixes #1354 Running Servo tests is pending... Done. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1493) <!-- Reviewable:end -->
|
|
|
Do the other functions in ps_blend.fs.glsl need to be adjusted to work with premultiplied alpha as well? For example the brightness filter may need to unpremultiply the input, apply the brightness factor to the rgb values, and then premultiply the output again. |
kvark commentedJul 18, 2017
•
edited
Fixes #1449, fixes #1354
Running Servo tests is pending... Done.
This change is