summaryrefslogtreecommitdiffstats
path: root/3ner.shader
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-02-24 19:09:23 -0800
committeryum <yum.food.vr@gmail.com>2026-02-24 19:09:23 -0800
commit80d511162ca90e29fd26c9a5893cde7aa9c23332 (patch)
tree12c7bd37084b7ded5eb2472ca2b5bcc6d8e8d69b /3ner.shader
parent610607592438452e181eba98f05d58f838975266 (diff)
Add outline pass
Diffstat (limited to '3ner.shader')
-rwxr-xr-x3ner.shader41
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" }