Weld vertices before shading
Title can be a bit confusing but I want to create an outline shader by myself and stuck into a problem. I need to "swell" mesh by some amout and then apply Standard shader. I can easily swell cube (because it's coordinates between -0.5 and 0.5) just multiplying its vertices positions by some value but I wouldn't do this for concave meshes or meshes with offseted center point. I need to move each vertex by some amount in direction or middle point between all normals of the vertices sharing the same world point.
Here is an example I found here
In that example "correct normals" aren't correct for my task but moving along "shared" could easily solve it
Your answer
![](https://koobas.hobune.stream/wayback/20220612181414im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How can i fix/properly use this code ? 0 Answers
Why is this point light square? 1 Answer
Turn off vertex normals for surface shader using normal map. 0 Answers
Camera FX to fade out back to normal 0 Answers
Custom split color font 0 Answers