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

Add concave polygon algorithm using stencil buffer #860

Open
bvssvni opened this issue Mar 5, 2015 · 0 comments
Open

Add concave polygon algorithm using stencil buffer #860

bvssvni opened this issue Mar 5, 2015 · 0 comments
Labels

Comments

@bvssvni
Copy link
Member

bvssvni commented Mar 5, 2015

Can be added to Polygon.

From nical's comment on IRC:

basically you take a point A inside of the shape and each triangle is made of P(i), P(i+1) and A. In the stencil buffer you alternate between 0 and and 1, and the pixels that are inside the shape are 1, while the ones outside are 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant