Created
January 7, 2019 01:24
-
-
Save lyuma/826f8da875f4a2a14d87cc7829e836c5 to your computer and use it in GitHub Desktop.
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 "LyumaShader/InsideSphere" | |
{ | |
Properties | |
{ | |
// Shader properties | |
_Color ("Main Color", Color) = (1,1,1,1) | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
// Shader code | |
Pass{ | |
Cull Back | |
Stencil { | |
Ref 123 | |
Comp Always | |
Pass Replace | |
ZFail Replace | |
Fail Replace | |
} | |
ColorMask 0 | |
ZWrite Off | |
} | |
Pass{ | |
Tags{ | |
"Queue" = "Transparent" | |
} | |
Stencil { | |
Ref 123 | |
Comp NotEqual | |
Pass Keep | |
} | |
Cull Front | |
Lighting Off | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment