This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "StencilOutlinePostEffect" | |
{ | |
Properties | |
{ | |
_OutlineColor("OutlineColor", Color) = (1, 1, 1, 1) | |
} | |
SubShader | |
{ | |
Cull Off ZWrite Off ZTest Always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pass | |
{ | |
Stencil | |
{ | |
Ref 2 | |
Comp always | |
Pass replace | |
} | |
Cull Back |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pass | |
{ | |
Stencil | |
{ | |
Ref 1 | |
Comp always | |
Pass replace | |
} | |
Cull Front |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Custom/StencilOutline" { | |
Properties | |
{ | |
_OutlineWidth("Outline Width", float) = 0.1 | |
} | |
SubShader | |
{ | |
Tags{ "RenderType" = "Transparent" "Queue" = "Transparent" } | |
Pass |