diff options
| author | yum <yum.food.vr@gmail.com> | 2024-11-03 15:25:08 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-11-03 15:25:54 -0800 |
| commit | b7d3cb5d759feab1e44f4cdb01a0c8922bf4f1cb (patch) | |
| tree | cc10c40ac2e632dd07a0ac0fe515048b354af7f9 /tooner.shader | |
| parent | cb55e813456480a036673d1d32608e10b10c8f87 (diff) | |
Misc
* Add third HSV slot
* Add ZTest enum
* Fix bug where SSR mask keyword can be set when SSR is disabled
Diffstat (limited to 'tooner.shader')
| -rw-r--r-- | tooner.shader | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tooner.shader b/tooner.shader index 05ea499..a21a52f 100644 --- a/tooner.shader +++ b/tooner.shader @@ -3,7 +3,7 @@ Shader "yum_food/tooner" // Unity fucking sucks ass and sometimes incorrectly uses an old cached // version of the shader. Bump the nonce below to encourage it to use the // current version. - // Build nonce: 32 + // Build nonce: 34 Properties { _Color("Base color", Color) = (0.8, 0.8, 0.8, 1) @@ -274,6 +274,7 @@ Shader "yum_food/tooner" [HideInInspector] _SrcBlend ("_SrcBlend", Float) = 1 [HideInInspector] _DstBlend ("_SrcBlend", Float) = 0 [HideInInspector] _ZWrite ("_ZWrite", Float) = 1 + [HideInInspector] _ZTest ("_ZTest", Float) = 4 // LEqual _Matcap0("Matcap", 2D) = "black" {} _Matcap0_Mask("Matcap mask", 2D) = "white" {} @@ -448,6 +449,13 @@ Shader "yum_food/tooner" _HSV1_Sat_Shift("HSV saturation shift", Range(-1.0, 1.0)) = 0.0 _HSV1_Val_Shift("HSV value shift", Range(-1.0, 1.0)) = 0.0 + _HSV2_Enabled("Enable HSV", Float) = 0.0 + _HSV2_Mask("Mask", 2D) = "white" {} + _HSV2_Mask_Invert("Mask invert", Float) = 0.0 + _HSV2_Hue_Shift("HSV hue shift", Range(0.0, 1.0)) = 0.0 + _HSV2_Sat_Shift("HSV saturation shift", Range(-1.0, 1.0)) = 0.0 + _HSV2_Val_Shift("HSV value shift", Range(-1.0, 1.0)) = 0.0 + _Clones_Enabled("Enable clones", Float) = 0.0 _Clones_Count("Clones count", Range(0,16)) = 0.0 _Clones_Dist_Cutoff("distance cutoff", Float) = -1.0 @@ -711,7 +719,7 @@ Shader "yum_food/tooner" } Blend [_SrcBlend] [_DstBlend] ZWrite [_ZWrite] - ZTest LEqual + ZTest [_ZTest] Cull [_Cull] Stencil { @@ -775,7 +783,7 @@ Shader "yum_food/tooner" Cull [_OutlinesCull] ZWrite [_ZWrite] - ZTest LEqual + ZTest [_ZTest] Stencil { Ref [_Stencil_Ref_Outline] |
