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

Make alpha blending optional #14

Open
hugoam opened this issue Mar 13, 2019 · 2 comments
Open

Make alpha blending optional #14

hugoam opened this issue Mar 13, 2019 · 2 comments

Comments

@hugoam
Copy link
Contributor

hugoam commented Mar 13, 2019

When using vg-renderer to "compose" viewports on the screen, there is currently no control on the blend mode, which right now is hardcoded to alpha blending.
It would be nice if vg-renderer exposed a way to change that blend mode :)

@jdryg
Copy link
Owner

jdryg commented Mar 14, 2019

I'll have to think about it a bit more because alpha blending is currently required for antialiasing to work.

To be honest I totally forgot about blend modes (had no use for them). NanoVG supports them, so I should probably put that on the readme, in the section "What's not supported compared to NanoVG", at least until I manage to figure out how to implement them properly.

@hugoam
Copy link
Contributor Author

hugoam commented Mar 14, 2019

I kind of realized that the issue I thought I was having was not due to vg alpha blending after all.
After thinking a bit more about it, even for blitting pre-rendered viewports on the screen, alpha blending should be the correct mode anyway.
So this is not so needed after all. If I ever actually need it, it will probably come with a pull request :)

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

No branches or pull requests

2 participants