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

geometry: mechanism for chamfered corners #44

Closed
brandondube opened this issue Aug 15, 2021 · 1 comment
Closed

geometry: mechanism for chamfered corners #44

brandondube opened this issue Aug 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@brandondube
Copy link
Owner

at the moment, all rasterized shapes have sharp corners. For nonconvex shapes (and even for convex shapes), this is not very manufacturable and prysm has no mechanism for rasterizing more manufacturable shapes, per-se. Bezier curves are one way to accomplish this, which has the benefit of being compatible with the vertex-based approach used by the convex polygon shader. Others would include figuring out how to do the bitwise masking on offset circles, but there is a bit of trickiness there.

@brandondube brandondube added the enhancement New feature or request label Aug 15, 2021
@brandondube
Copy link
Owner Author

this was implemented sometime in the last year for rectangles with rounded corners. The same logic can be used to make "bowties" with rounded corners as needed in the future

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

No branches or pull requests

1 participant