-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Better transparency handling with math ops and blending functions? #1675
Labels
Comments
So transparency for blending functions is implemented with #1704. And as for transparency of math ops I guess I abandon/postpone this idea since it does not seems like possible use-cases are worth an efforts needed and an additional complier burden (Though the research for possible algorithms was quite inspirational on its own :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was playing with #1673 issue, specifically thinking of more reasonable alpha calculation and found that things go a bit wider than just a proper alpha op. Beside math ops, there are also color blending functions that totally ignore alpha channels and always return non-transparent colors (so blending functions don't suffer from #1673 :).
E.g.:
Probably a transparency handling similar to http://www.w3.org/TR/compositing-1/#blending would make more sense. And it looks like this should somehow apply to math ops as well.
Additionally it seems that ideally
tree.Color op tree.Dimension
andtree.Color op tree.Color
whereop
is*
or/
operations should be handled in different ways, e.g.:Of course all this will need a lot of code changes so that "demand/efforts ratio" becomes questionable, but I just wanted to have some food for thought.
The text was updated successfully, but these errors were encountered: