OutlineStencil This shader creates an outline with a transparent gap using stencils. ZWrite is Off in both passes, otherwise the outline would be on top of other objects.