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

Camera Based Outline, Geometry with Sharp Edges #7

Open
tylo opened this issue May 25, 2020 · 2 comments
Open

Camera Based Outline, Geometry with Sharp Edges #7

tylo opened this issue May 25, 2020 · 2 comments

Comments

@tylo
Copy link

tylo commented May 25, 2020

Have you tried testing your Camera Based Outline shader on a primitive cube? It works well on a sphere, but on the cube, the vertex expansion along the normals cause the sides of the cubes to separate from one another.

See attached picture.
image

@tylo
Copy link
Author

tylo commented May 25, 2020

I suppose the Unity cube itself could be to blame? That each side has their own vertices, instead of shared vertices?

@jonathanperret
Copy link

Yes, for this kind of outline shader you will get much better results with normals that are shared between faces.

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