diff options
Diffstat (limited to '3ner.shader')
| -rwxr-xr-x | 3ner.shader | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/3ner.shader b/3ner.shader index d08f2c7..6735229 100755 --- a/3ner.shader +++ b/3ner.shader @@ -94,6 +94,15 @@ Shader "yum_food/3ner" [HideInInspector] m_end_Wrapped_Lighting("Wrapped Lighting", Float) = 0 //endex + //ifex _Outlines_Enabled==0 + [HideInInspector] m_start_Outlines("Outlines", Float) = 0 + [ThryToggle(_OUTLINES)] _Outlines_Enabled("Enable", Float) = 0 + _Outlines_Color("Color", Color) = (1, 1, 1, 1) + _Outlines_Width("Width", Range(0, 1)) = 0.01 + _Outlines_Thickness("Thickness", 2D) = "white" {} + [HideInInspector] m_end_Outlines("Outlines", Float) = 0 + //endex + [HideInInspector] m_end_Main("Main", Float) = 0 [HideInInspector] m_start_Gimmicks("Gimmicks", Float) = 0 @@ -585,6 +594,38 @@ Shader "yum_food/3ner" #include "3ner.cginc" ENDCG } + //ifex _Outlines_Enabled==0 + Pass { + Name "OUTLINES" + Tags { "LightMode" = "ForwardBase" } + BlendOp [_BlendOp], [_BlendOpAlpha] + Blend [_SrcBlend] [_DstBlend], [_SrcBlendAlpha] [_DstBlendAlpha] + Cull Front + ZWrite [_ZWrite] + ZTest [_ZTest] + + CGPROGRAM + #pragma target 5.0 + #pragma multi_compile_fwdbase + #pragma multi_compile_fullshadows + #pragma multi_compile_instancing + #pragma multi_compile_fog + #pragma vertex vert + //ifex _Geometry_Enabled==0 + #pragma geometry geom + //endex + //ifex _Tessellation_Enabled==0 + #pragma hull hull + #pragma domain domain + //endex + #pragma fragment frag + + #define OUTLINES_PASS + + #include "3ner.cginc" + ENDCG + } + //endex Pass { Name "ADDITIVE" Tags { "LightMode" = "ForwardAdd" } |
