summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_TFHCCompareWithRange.shader
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-10 14:07:40 +0800
committerchai <chaifix@163.com>2022-03-10 14:07:40 +0800
commit22891bf59032ba88262824255a706d652031384b (patch)
tree7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_TFHCCompareWithRange.shader
parent8b04ea73e540067f83870b61d89db4868fea5e8a (diff)
* move folder
Diffstat (limited to 'Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_TFHCCompareWithRange.shader')
-rw-r--r--Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_TFHCCompareWithRange.shader38
1 files changed, 0 insertions, 38 deletions
diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_TFHCCompareWithRange.shader b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_TFHCCompareWithRange.shader
deleted file mode 100644
index 516727f2..00000000
--- a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_TFHCCompareWithRange.shader
+++ /dev/null
@@ -1,38 +0,0 @@
-Shader "Hidden/TFHCCompareWithRange"
-{
- Properties
- {
- _A ("_Value", 2D) = "white" {}
- _B ("_RangeMin", 2D) = "white" {}
- _C ("_RangeMax", 2D) = "white" {}
- _D ( "_True", 2D ) = "white" {}
- _E ( "_False", 2D ) = "white" {}
- }
- SubShader
- {
- Pass
- {
- CGPROGRAM
- #include "UnityCG.cginc"
- #pragma vertex vert_img
- #pragma fragment frag
-
- sampler2D _A;
- sampler2D _B;
- sampler2D _C;
- sampler2D _D;
- sampler2D _E;
-
- float4 frag(v2f_img i) : SV_Target
- {
- float4 Value = tex2D( _A, i.uv ).x;
- float4 RangeMin = tex2D( _B, i.uv ).x;
- float4 RangeMax = tex2D( _C, i.uv );
- float4 True = tex2D ( _D, i.uv );
- float4 False = tex2D ( _E, i.uv );
- return ( ( Value >= RangeMin && Value <= RangeMax ) ? True : False );
- }
- ENDCG
- }
- }
-}