3D Outline [ShaderGraph URP]

Hey,

I’m using URP and can’t find a solution for making a 3D outline. Already spent couple of hours searching, so please - don’t copy ‘solutions’ from other websites. They doesn’t work…
I want to achive black border around 3D objects. Just like Unity selection tool works, it highlight object with orange color.


If it is possible i want to:

  • not duplicate geometry
  • use shadergraph for it

alt text
alt text


Unfortunately, the cube’s faces have a strange offset (I know this is because of normals, but with my current knowledge I cann’t fix it : /)

you can either save smooth the normals or you can save the smoothed out normals on the colors of the vertices and use that instead, that will give you a “blended” normal to push the vertices while maintaining the real normals for the illumination.,

Did you find a solution?