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

Opacity multiplication when offsetting polygons #3157

Closed
isimonescu opened this issue Sep 7, 2016 · 1 comment
Closed

Opacity multiplication when offsetting polygons #3157

isimonescu opened this issue Sep 7, 2016 · 1 comment

Comments

@isimonescu
Copy link

When offsetting polygons to the inner side and using transparency, you get line overlapping.

image

Not sure is this is an incorrect line joining issue or just an incorrect use of the stencil buffer.

I managed to overcome this on GL native by using a custom layer and rendering the polygons on my own. But I would like to see this done also in JS, where AFAIK there is no support for custom layers.

The easy fix here would be to fill the polygon into the stencil buffer and then make another pass with the offset, using the stencil buffer to figure out where to draw.

This would be a killer feature for borders, indicating which side you are on.

@jfirebaugh
Copy link
Contributor

Duplicate of #794.

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