unity-shaders icon indicating copy to clipboard operation
unity-shaders copied to clipboard

Camera Based Outline, Geometry with Sharp Edges

Open tylo opened this issue 4 years ago • 2 comments

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 avatar May 25 '20 22:05 tylo

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

tylo avatar May 25 '20 22:05 tylo

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

jonathanperret avatar Jun 02 '20 22:06 jonathanperret