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 support for silhouette edges #26

Open
ianmackenzie opened this issue Sep 4, 2019 · 2 comments
Open

Add support for silhouette edges #26

ianmackenzie opened this issue Sep 4, 2019 · 2 comments

Comments

@ianmackenzie
Copy link
Owner

Should be able to reuse much of the shadow edges logic to tag lines with their adjacent face normals, then only render silhouette edges

@ianmackenzie
Copy link
Owner Author

Similar to Mesh.shadow, might be able to have

Mesh.silhouette : Mesh coordinates a -> Silhouette coordinates

and then Scene3d.silhouette, Scene3d.withSilhouette etc.

@ianmackenzie
Copy link
Owner Author

Possibly useful: use trick described in http://www.terathon.com/gdc07_lengyel.pdf to adjust depth calculation, instead of using actual polygon offset

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

1 participant