Created
September 8, 2018 16:46
-
-
Save Draco18s/3810c5d64de405bc0d7ca2b1b1e084f4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "Unlit/UI_ShaderFixes" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_Color("Color Multiplier", Color) = (1, 1, 1, 1) // color | |
_Cutoff ("Cutoff", Range(0,1)) = 0.5 | |
[HideInInspector]_StencilComp("Stencil Comparison", Float) = 8 | |
[HideInInspector]_Stencil("Stencil ID", Float) = 1 | |
[HideInInspector]_StencilOp("Stencil Operation", Float) = 0 | |
[HideInInspector]_StencilWriteMask("Stencil Write Mask", Float) = 255 | |
[HideInInspector]_StencilReadMask("Stencil Read Mask", Float) = 255 | |
[HideInInspector]_ColorMask("Color Mask", Float) = 15 | |
} | |
SubShader { | |
Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="TransparentCutout"} | |
Blend SrcAlpha OneMinusSrcAlpha | |
LOD 100 | |
Lighting Off | |
Stencil | |
{ | |
Ref[_Stencil] | |
Comp[_StencilComp] | |
Pass[_StencilOp] | |
ReadMask[_StencilReadMask] | |
WriteMask[_StencilWriteMask] | |
} | |
Pass { | |
//... | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment