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
Ignore alpha when adding luminance in Sandwich compositor #2080
Ignore alpha when adding luminance in Sandwich compositor #2080
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, what a simple solution. Nice job and thanks for making the PR!
Are there tests for this compositor already? Could they be modified or added onto to check for this fix?
That's a good idea. I think the existing check actually just did the first three bands 'RGB'. So adding one to check the alpha stays intact makes sense. I'll see what I can come up with. |
…atpy into update-sandwich-compositor
Existing test updated to confirm alpha band remains intact. |
Codecov Report
@@ Coverage Diff @@
## main #2080 +/- ##
=======================================
Coverage 93.79% 93.79%
=======================================
Files 283 283
Lines 42281 42284 +3
=======================================
+ Hits 39659 39662 +3
Misses 2622 2622
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Not sure what to do about the CodeFactor failure. |
@mherbertson that usually means that some of the functions/classes in that modules are too convoluted, and should thus be refactored to smaller functions/classes. But in the changes you made, I don't really see how to make things simpler, do you? |
@mraspaud Thanks for the explanation! I don't think there's much I can do to simplify. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This updates the Sandwich compositor to ignore the alpha band when modifying.