Outline obstructed objects

      No Comments on Outline obstructed objects

This is a simple shader which makes it possible to outline obstructed objects and draw them on top of the obstructions. I’ve used Unity’s Standard Shader and modified it to support two more properties: Outline Color and Outline Width.

Note that the Standard Shader is taken from the 5.6.1 version. If you have a more recent version of Unity some options from the Standard Shader might be missing.

StandardOutlineObstructed.shader

StandardOutlineObstructedShaderGUI.cs

Leave a Reply

Your email address will not be published. Required fields are marked *