summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_FunctionInputNode.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_FunctionInputNode.shader
parent8b04ea73e540067f83870b61d89db4868fea5e8a (diff)
* move folder
Diffstat (limited to 'Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_FunctionInputNode.shader')
-rw-r--r--Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_FunctionInputNode.shader39
1 files changed, 0 insertions, 39 deletions
diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_FunctionInputNode.shader b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_FunctionInputNode.shader
deleted file mode 100644
index 898706af..00000000
--- a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/EditorResources/Previews/Preview_FunctionInputNode.shader
+++ /dev/null
@@ -1,39 +0,0 @@
-Shader "Hidden/FunctionInputNode"
-{
- Properties
- {
- _A ("_A", 2D) = "white" {}
- }
- SubShader
- {
- Pass
- {
- CGPROGRAM
- #include "UnityCG.cginc"
- #pragma vertex vert_img
- #pragma fragment frag
-
- sampler2D _A;
- int _Type;
-
- float4 frag(v2f_img i) : SV_Target
- {
- if( _Type == 1 )
- {
- return tex2D( _A, i.uv ).r;
- } else if( _Type == 2 )
- {
- return float4(tex2D( _A, i.uv ).rg,0,0);
- } else if( _Type == 3 )
- {
- return float4(tex2D( _A, i.uv ).rgb,0);
- }
- else
- {
- return tex2D( _A, i.uv );
- }
- }
- ENDCG
- }
- }
-}