135 lines
9.6 KiB
Plaintext
135 lines
9.6 KiB
Plaintext
![]() |
// Made with Amplify Shader Editor
|
||
|
// Available at the Unity Asset Store - http://u3d.as/y3X
|
||
|
Shader "Cheng/dragon"
|
||
|
{
|
||
|
Properties
|
||
|
{
|
||
|
_bule("bule", Color) = (0,0.8694534,1,0)
|
||
|
_white("white", Color) = (1,1,1,0)
|
||
|
_MainTex("MainTex ", 2D) = "white" {}
|
||
|
_Texture("Texture", 2D) = "white" {}
|
||
|
_NoiseTex("NoiseTex", 2D) = "white" {}
|
||
|
_Noise_U("Noise_U", Float) = 0.5
|
||
|
_Noise_V("Noise_V", Float) = 1
|
||
|
_Float2("溶解强度", Float) = 1
|
||
|
_Float3("蓝色强度", Float) = 0
|
||
|
[HideInInspector] _texcoord( "", 2D ) = "white" {}
|
||
|
[HideInInspector] __dirty( "", Int ) = 1
|
||
|
}
|
||
|
|
||
|
SubShader
|
||
|
{
|
||
|
Tags{ "RenderType" = "Opaque" "Queue" = "Geometry+0" "IsEmissive" = "true" }
|
||
|
Cull Off
|
||
|
CGPROGRAM
|
||
|
#include "UnityShaderVariables.cginc"
|
||
|
#pragma target 3.0
|
||
|
#pragma surface surf Standard keepalpha addshadow fullforwardshadows
|
||
|
struct Input
|
||
|
{
|
||
|
float2 uv_texcoord;
|
||
|
};
|
||
|
|
||
|
uniform sampler2D _Texture;
|
||
|
uniform sampler2D _NoiseTex;
|
||
|
uniform float4 _NoiseTex_ST;
|
||
|
uniform float _Noise_U;
|
||
|
uniform float _Noise_V;
|
||
|
uniform float4 _Texture_ST;
|
||
|
uniform float4 _bule;
|
||
|
uniform float _Float3;
|
||
|
uniform float4 _white;
|
||
|
uniform sampler2D _MainTex;
|
||
|
uniform float4 _MainTex_ST;
|
||
|
uniform float _Float2;
|
||
|
|
||
|
void surf( Input i , inout SurfaceOutputStandard o )
|
||
|
{
|
||
|
float2 uv_NoiseTex = i.uv_texcoord * _NoiseTex_ST.xy + _NoiseTex_ST.zw;
|
||
|
float2 appendResult12 = (float2(( _Noise_U * _Time.y ) , ( _Time.y * _Noise_V )));
|
||
|
float2 temp_output_11_0 = ( uv_NoiseTex + appendResult12 );
|
||
|
float2 Noise37 = temp_output_11_0;
|
||
|
float2 uv_Texture = i.uv_texcoord * _Texture_ST.xy + _Texture_ST.zw;
|
||
|
float2 uv_MainTex = i.uv_texcoord * _MainTex_ST.xy + _MainTex_ST.zw;
|
||
|
float ifLocalVar25 = 0;
|
||
|
if( ( tex2D( _MainTex, uv_MainTex ).r + tex2D( _NoiseTex, temp_output_11_0 ).r ) >= _Float2 )
|
||
|
ifLocalVar25 = 1.0;
|
||
|
else
|
||
|
ifLocalVar25 = 0.0;
|
||
|
float4 lerpResult1 = lerp( ( ( tex2D( _Texture, ( Noise37 + uv_Texture ) ) + ( tex2D( _NoiseTex, uv_NoiseTex ) * _bule ) ) * _Float3 ) , _white , ifLocalVar25);
|
||
|
o.Emission = lerpResult1.rgb;
|
||
|
o.Alpha = 1;
|
||
|
}
|
||
|
|
||
|
ENDCG
|
||
|
}
|
||
|
Fallback "Diffuse"
|
||
|
CustomEditor "ASEMaterialInspector"
|
||
|
}
|
||
|
/*ASEBEGIN
|
||
|
Version=18900
|
||
|
274;211;1811;1007;958.2385;319.5831;1;True;False
|
||
|
Node;AmplifyShaderEditor.TimeNode;14;-2143.98,722.6995;Inherit;False;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
||
|
Node;AmplifyShaderEditor.RangedFloatNode;16;-2129.98,548.6995;Inherit;False;Property;_Noise_U;Noise_U;5;0;Create;True;0;0;0;False;0;False;0.5;1.21;0;0;0;1;FLOAT;0
|
||
|
Node;AmplifyShaderEditor.RangedFloatNode;18;-2114.98,978.6989;Inherit;False;Property;_Noise_V;Noise_V;6;0;Create;True;0;0;0;False;0;False;1;0.34;0;0;0;1;FLOAT;0
|
||
|
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;15;-1909.977,610.6995;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
|
||
|
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;17;-1838.977,845.6995;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
|
||
|
Node;AmplifyShaderEditor.DynamicAppendNode;12;-1612.977,679.6995;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
|
||
|
Node;AmplifyShaderEditor.TextureCoordinatesNode;9;-1733.479,529.8357;Inherit;False;0;28;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
||
|
Node;AmplifyShaderEditor.SimpleAddOpNode;11;-1420.077,611.2996;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
|
||
|
Node;AmplifyShaderEditor.RegisterLocalVarNode;37;-1244.664,791.1557;Inherit;False;Noise;-1;True;1;0;FLOAT2;0,0;False;1;FLOAT2;0
|
||
|
Node;AmplifyShaderEditor.GetLocalVarNode;38;-853.4123,-458.0247;Inherit;False;37;Noise;1;0;OBJECT;;False;1;FLOAT2;0
|
||
|
Node;AmplifyShaderEditor.TextureCoordinatesNode;45;-881.9451,-368.2009;Inherit;False;0;42;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
||
|
Node;AmplifyShaderEditor.TexturePropertyNode;28;-1278.984,17.10299;Inherit;True;Property;_NoiseTex;NoiseTex;4;0;Create;True;0;0;0;False;0;False;None;9b70d85c63e2246408e9f7f3166728ae;False;white;Auto;Texture2D;-1;0;2;SAMPLER2D;0;SAMPLERSTATE;1
|
||
|
Node;AmplifyShaderEditor.SimpleAddOpNode;44;-635.2592,-440.7845;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
|
||
|
Node;AmplifyShaderEditor.SamplerNode;27;-696.24,-51.21782;Inherit;True;Property;_TextureSample0;Texture Sample 0;7;0;Create;True;0;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;8;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
||
|
Node;AmplifyShaderEditor.ColorNode;2;-421.1356,170.5099;Inherit;False;Property;_bule;bule;0;0;Create;True;0;0;0;False;0;False;0,0.8694534,1,0;0,0.8334823,1,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
||
|
Node;AmplifyShaderEditor.SamplerNode;10;-782.2852,643.9382;Inherit;True;Property;_Noise;Noise;3;0;Create;True;0;0;0;False;0;False;-1;9b70d85c63e2246408e9f7f3166728ae;9b70d85c63e2246408e9f7f3166728ae;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;8;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
||
|
Node;AmplifyShaderEditor.SamplerNode;4;-753.2125,324.0445;Inherit;True;Property;_MainTex;MainTex ;2;0;Create;True;0;0;0;False;0;False;-1;e294458001ea5ba468908d3e037dcf96;e294458001ea5ba468908d3e037dcf96;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;8;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
||
|
Node;AmplifyShaderEditor.SamplerNode;42;-523.1805,-335.662;Inherit;True;Property;_Texture;Texture;3;0;Create;True;0;0;0;False;0;False;-1;None;9b70d85c63e2246408e9f7f3166728ae;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;8;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
||
|
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;39;-146.6105,-37.40489;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
|
||
|
Node;AmplifyShaderEditor.SimpleAddOpNode;41;83.55133,-462.0654;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
|
||
|
Node;AmplifyShaderEditor.RangedFloatNode;23;-30.71094,599.321;Inherit;False;Property;_Float2;溶解强度;7;0;Create;False;0;0;0;False;0;False;1;1.25;0;0;0;1;FLOAT;0
|
||
|
Node;AmplifyShaderEditor.RangedFloatNode;22;-22.71094,796.321;Inherit;False;Constant;_Float1;Float 1;6;0;Create;True;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
||
|
Node;AmplifyShaderEditor.SimpleAddOpNode;8;-123.0675,352.6275;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
|
||
|
Node;AmplifyShaderEditor.RangedFloatNode;21;-31.71094,683.321;Inherit;False;Constant;_Float0;Float 0;6;0;Create;True;0;0;0;False;0;False;1;0;0;0;0;1;FLOAT;0
|
||
|
Node;AmplifyShaderEditor.RangedFloatNode;47;110.0381,-48.3611;Inherit;False;Property;_Float3;蓝色强度;8;0;Create;False;0;0;0;False;0;False;0;0.49;0;0;0;1;FLOAT;0
|
||
|
Node;AmplifyShaderEditor.ConditionalIfNode;25;286.2891,349.321;Inherit;True;False;5;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;1;FLOAT;0
|
||
|
Node;AmplifyShaderEditor.ColorNode;3;91.15619,74.32538;Inherit;False;Property;_white;white;1;0;Create;True;0;0;0;False;0;False;1,1,1,0;0.8915094,0.9728774,1,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
||
|
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;46;296.1698,-198.077;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
|
||
|
Node;AmplifyShaderEditor.LerpOp;1;560.5,70.5;Inherit;False;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
|
||
|
Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;891,43.6373;Float;False;True;-1;2;ASEMaterialInspector;0;0;Standard;Cheng/dragon;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;Off;0;False;-1;0;False;-1;False;0;False;-1;0;False;-1;False;0;Opaque;0.5;True;True;0;False;Opaque;;Geometry;All;14;all;True;True;True;True;0;False;-1;False;0;False;-1;255;False;-1;255;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;False;2;15;10;25;False;0.5;True;0;0;False;-1;0;False;-1;0;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;0;0,0,0,0;VertexOffset;True;False;Cylindrical;False;Relative;0;;-1;-1;-1;-1;0;False;0;0;False;-1;-1;0;False;-1;0;0;0;False;0.1;False;-1;0;False;-1;False;16;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT3;0,0,0;False;7;FLOAT3;0,0,0;False;8;FLOAT;0;False;9;FLOAT;0;False;10;FLOAT;0;False;13;FLOAT3;0,0,0;False;11;FLOAT3;0,0,0;False;12;FLOAT3;0,0,0;False;14;FLOAT4;0,0,0,0;False;15;FLOAT3;0,0,0;False;0
|
||
|
WireConnection;15;0;16;0
|
||
|
WireConnection;15;1;14;2
|
||
|
WireConnection;17;0;14;2
|
||
|
WireConnection;17;1;18;0
|
||
|
WireConnection;12;0;15;0
|
||
|
WireConnection;12;1;17;0
|
||
|
WireConnection;11;0;9;0
|
||
|
WireConnection;11;1;12;0
|
||
|
WireConnection;37;0;11;0
|
||
|
WireConnection;44;0;38;0
|
||
|
WireConnection;44;1;45;0
|
||
|
WireConnection;27;0;28;0
|
||
|
WireConnection;10;0;28;0
|
||
|
WireConnection;10;1;11;0
|
||
|
WireConnection;42;1;44;0
|
||
|
WireConnection;39;0;27;0
|
||
|
WireConnection;39;1;2;0
|
||
|
WireConnection;41;0;42;0
|
||
|
WireConnection;41;1;39;0
|
||
|
WireConnection;8;0;4;1
|
||
|
WireConnection;8;1;10;1
|
||
|
WireConnection;25;0;8;0
|
||
|
WireConnection;25;1;23;0
|
||
|
WireConnection;25;2;21;0
|
||
|
WireConnection;25;3;21;0
|
||
|
WireConnection;25;4;22;0
|
||
|
WireConnection;46;0;41;0
|
||
|
WireConnection;46;1;47;0
|
||
|
WireConnection;1;0;46;0
|
||
|
WireConnection;1;1;3;0
|
||
|
WireConnection;1;2;25;0
|
||
|
WireConnection;0;2;1;0
|
||
|
ASEEND*/
|
||
|
//CHKSM=C83DE7908A3C371B460A3E3DE3BD7AFA38E949C4
|