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

inset / outset #24

Open
ghost opened this issue Sep 20, 2021 · 0 comments
Open

inset / outset #24

ghost opened this issue Sep 20, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 20, 2021

Currently the line rendering expands out in both directions from the calculated line normal but you should be able to have the lines expand out in either direction separately. This also means we need to take more care with the winding order (clockwise vs counter-clockwise). While expanding inward for an inset, the line expanding inward shouldn't clip through the outside border where the area features become narrow. Insets like that (perhaps they could have a separate term) could possibly be calculated in the fill fragment shader using some extra attribute calculated to know the distance to the nearest edge.

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

0 participants