RO_Effect_HuoJingLing.shader 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "RO/Effect_HuoJingLing_01"
  4. {
  5. Properties
  6. {
  7. _ASEOutlineColor( "Outline Color", Color ) = (0.8113208,0.2625765,0.1033286,0)
  8. _ASEOutlineWidth( "Outline Width", Float ) = 0.01
  9. _TextureSample0("Texture Sample 0", 2D) = "white" {}
  10. _TextureSample1("Texture Sample 1", 2D) = "white" {}
  11. _Float0("Float 0", Range( 0 , 1)) = 0
  12. [HDR]_Color1("Color 1", Color) = (0,0,0,0)
  13. _Color0("Color 0", Color) = (0,0,0,0)
  14. _Vector0("Vector 0", Vector) = (0,0,0,0)
  15. _Fresnel1("Fresnel", Float) = 1
  16. _MaksTex("MaksTex", 2D) = "white" {}
  17. _FresnelColor1("FresnelColor", Color) = (1,1,1,0)
  18. [HideInInspector] _texcoord( "", 2D ) = "white" {}
  19. [HideInInspector] __dirty( "", Int ) = 1
  20. }
  21. SubShader
  22. {
  23. Tags{ }
  24. Cull Front
  25. CGPROGRAM
  26. #pragma target 3.0
  27. #pragma surface outlineSurf Outline nofog keepalpha noshadow noambient novertexlights nolightmap nodynlightmap nodirlightmap nometa noforwardadd vertex:outlineVertexDataFunc
  28. struct Input {
  29. half filler;
  30. };
  31. float4 _ASEOutlineColor;
  32. float _ASEOutlineWidth;
  33. void outlineVertexDataFunc( inout appdata_full v, out Input o )
  34. {
  35. UNITY_INITIALIZE_OUTPUT( Input, o );
  36. v.vertex.xyz += ( v.normal * _ASEOutlineWidth );
  37. }
  38. inline half4 LightingOutline( SurfaceOutput s, half3 lightDir, half atten ) { return half4 ( 0,0,0, s.Alpha); }
  39. void outlineSurf( Input i, inout SurfaceOutput o )
  40. {
  41. o.Emission = _ASEOutlineColor.rgb;
  42. o.Alpha = 1;
  43. }
  44. ENDCG
  45. Tags{ "RenderType" = "Transparent" "Queue" = "Geometry+0" "IsEmissive" = "true" }
  46. Cull Back
  47. Blend SrcAlpha OneMinusSrcAlpha
  48. CGPROGRAM
  49. #include "UnityShaderVariables.cginc"
  50. #pragma target 3.0
  51. #pragma surface surf Unlit keepalpha noshadow exclude_path:deferred
  52. struct Input
  53. {
  54. float2 uv_texcoord;
  55. float3 worldPos;
  56. float3 worldNormal;
  57. };
  58. uniform float4 _Color0;
  59. uniform float4 _Color1;
  60. uniform sampler2D _TextureSample0;
  61. uniform sampler2D _TextureSample1;
  62. uniform float4 _Vector0;
  63. uniform float _Float0;
  64. uniform float4 _TextureSample0_ST;
  65. uniform sampler2D _MaksTex;
  66. uniform float4 _MaksTex_ST;
  67. uniform float _Fresnel1;
  68. uniform float4 _FresnelColor1;
  69. inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
  70. {
  71. return half4 ( 0, 0, 0, s.Alpha );
  72. }
  73. void surf( Input i , inout SurfaceOutput o )
  74. {
  75. float2 appendResult29 = (float2(_Vector0.x , _Vector0.y));
  76. float2 panner27 = ( 1.0 * _Time.y * appendResult29 + i.uv_texcoord);
  77. float2 appendResult30 = (float2(_Vector0.z , _Vector0.w));
  78. float2 uv0_TextureSample0 = i.uv_texcoord * _TextureSample0_ST.xy + _TextureSample0_ST.zw;
  79. float2 panner7 = ( 1.0 * _Time.y * appendResult30 + uv0_TextureSample0);
  80. float2 uv_MaksTex = i.uv_texcoord * _MaksTex_ST.xy + _MaksTex_ST.zw;
  81. float4 tex2DNode34 = tex2D( _MaksTex, uv_MaksTex );
  82. float3 ase_worldPos = i.worldPos;
  83. float3 ase_worldViewDir = normalize( UnityWorldSpaceViewDir( ase_worldPos ) );
  84. float3 ase_worldNormal = i.worldNormal;
  85. float fresnelNdotV13 = dot( ase_worldNormal, ase_worldViewDir );
  86. float fresnelNode13 = ( 0.0 + 1.0 * pow( 1.0 - fresnelNdotV13, _Fresnel1 ) );
  87. float4 lerpResult20 = lerp( _Color0 , _Color1 , saturate( ( ( tex2D( _TextureSample0, ( ( tex2D( _TextureSample1, panner27 ).r * _Float0 ) + panner7 ) ).r * tex2DNode34.r ) + ( saturate( fresnelNode13 ) * _FresnelColor1 ) + tex2DNode34.g ) ));
  88. o.Emission = lerpResult20.rgb;
  89. o.Alpha = ( 1.0 - tex2DNode34.b );
  90. }
  91. ENDCG
  92. }
  93. CustomEditor "ASEMaterialInspector"
  94. }
  95. /*ASEBEGIN
  96. Version=18100
  97. 2183;7;1650;1004;469.5417;589.7338;1.690511;True;True
  98. Node;AmplifyShaderEditor.Vector4Node;28;-1162.641,-6.279582;Inherit;False;Property;_Vector0;Vector 0;6;0;Create;True;0;0;False;0;False;0,0,0,0;0,-0.08,0,-0.1;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  99. Node;AmplifyShaderEditor.DynamicAppendNode;29;-962.5262,-161.5929;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  100. Node;AmplifyShaderEditor.TextureCoordinatesNode;25;-1218.427,-369.0796;Inherit;False;0;-1;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
  101. Node;AmplifyShaderEditor.PannerNode;27;-878.6031,-348.6585;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
  102. Node;AmplifyShaderEditor.TextureCoordinatesNode;2;-689.5131,-30.54654;Inherit;False;0;1;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
  103. Node;AmplifyShaderEditor.DynamicAppendNode;30;-863.9619,93.77814;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0
  104. Node;AmplifyShaderEditor.SamplerNode;15;-650.2321,-358.5314;Inherit;True;Property;_TextureSample1;Texture Sample 1;2;0;Create;True;0;0;False;0;False;-1;None;89f4708ab9537404697944ddb4c3800a;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;6;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;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  105. Node;AmplifyShaderEditor.RangedFloatNode;18;-638.2321,-140.5314;Inherit;False;Property;_Float0;Float 0;3;0;Create;True;0;0;False;0;False;0;0.076;0;1;0;1;FLOAT;0
  106. Node;AmplifyShaderEditor.RangedFloatNode;37;213.7338,608.4106;Inherit;False;Property;_Fresnel1;Fresnel;7;0;Create;True;0;0;False;0;False;1;4.3;0;0;0;1;FLOAT;0
  107. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;17;-257.2321,-234.5314;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  108. Node;AmplifyShaderEditor.PannerNode;7;-349.6899,-10.12549;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
  109. Node;AmplifyShaderEditor.SimpleAddOpNode;16;-126.2321,-70.53137;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
  110. Node;AmplifyShaderEditor.FresnelNode;13;325.9412,341.0587;Inherit;False;Standard;WorldNormal;ViewDir;False;False;5;0;FLOAT3;0,0,1;False;4;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;1;False;3;FLOAT;5;False;1;FLOAT;0
  111. Node;AmplifyShaderEditor.SamplerNode;1;-5.339203,-24.85684;Inherit;True;Property;_TextureSample0;Texture Sample 0;1;0;Create;True;0;0;False;0;False;-1;None;7a66b630737e2e440817bfef923dab8e;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;6;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;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  112. Node;AmplifyShaderEditor.SamplerNode;34;-174.8355,192.4385;Inherit;True;Property;_MaksTex;MaksTex;8;0;Create;True;0;0;False;0;False;-1;None;574799c105139c64bb67c773bbfea0c1;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;6;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;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  113. Node;AmplifyShaderEditor.ColorNode;38;719.4242,487.071;Inherit;False;Property;_FresnelColor1;FresnelColor;9;0;Create;True;0;0;False;0;False;1,1,1,0;0.6132076,0.3268512,0.3268512,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  114. Node;AmplifyShaderEditor.SaturateNode;32;628.9274,352.6992;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  115. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;12;349.9031,22.56243;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;1;False;1;FLOAT;0
  116. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;39;898.4442,333.4112;Inherit;False;2;2;0;FLOAT;0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
  117. Node;AmplifyShaderEditor.SimpleAddOpNode;10;753.562,78.14714;Inherit;False;3;3;0;FLOAT;0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
  118. Node;AmplifyShaderEditor.ColorNode;22;605.5317,-203.626;Inherit;False;Property;_Color1;Color 1;4;1;[HDR];Create;True;0;0;False;0;False;0,0,0,0;1.720795,1.081128,0.6576862,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  119. Node;AmplifyShaderEditor.ColorNode;21;623.5317,-417.626;Inherit;False;Property;_Color0;Color 0;5;0;Create;True;0;0;False;0;False;0,0,0,0;0.9058824,0.4,0.2313726,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  120. Node;AmplifyShaderEditor.SaturateNode;33;924.3109,76.16864;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
  121. Node;AmplifyShaderEditor.OneMinusNode;35;925.3273,213.9661;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  122. Node;AmplifyShaderEditor.OneMinusNode;36;178.184,226.173;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  123. Node;AmplifyShaderEditor.LerpOp;20;1203.274,-67.97476;Inherit;False;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;COLOR;0,0,0,0;False;1;COLOR;0
  124. Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;1469.673,-122.9503;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;RO/Effect_HuoJingLing_01;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;Back;0;False;-1;0;False;-1;False;0;False;-1;0;False;-1;False;0;Custom;0.5;True;False;0;True;Transparent;;Geometry;ForwardOnly;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;False;2;5;False;-1;10;False;-1;0;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;True;0.01;0.8113208,0.2625765,0.1033286,0;VertexOffset;True;False;Cylindrical;False;Relative;0;;0;-1;-1;-1;0;False;0;0;False;-1;-1;0;False;-1;0;0;0;False;0.1;False;-1;0;False;-1;15;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;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
  125. WireConnection;29;0;28;1
  126. WireConnection;29;1;28;2
  127. WireConnection;27;0;25;0
  128. WireConnection;27;2;29;0
  129. WireConnection;30;0;28;3
  130. WireConnection;30;1;28;4
  131. WireConnection;15;1;27;0
  132. WireConnection;17;0;15;1
  133. WireConnection;17;1;18;0
  134. WireConnection;7;0;2;0
  135. WireConnection;7;2;30;0
  136. WireConnection;16;0;17;0
  137. WireConnection;16;1;7;0
  138. WireConnection;13;3;37;0
  139. WireConnection;1;1;16;0
  140. WireConnection;32;0;13;0
  141. WireConnection;12;0;1;1
  142. WireConnection;12;1;34;1
  143. WireConnection;39;0;32;0
  144. WireConnection;39;1;38;0
  145. WireConnection;10;0;12;0
  146. WireConnection;10;1;39;0
  147. WireConnection;10;2;34;2
  148. WireConnection;33;0;10;0
  149. WireConnection;35;0;34;3
  150. WireConnection;36;0;34;2
  151. WireConnection;20;0;21;0
  152. WireConnection;20;1;22;0
  153. WireConnection;20;2;33;0
  154. WireConnection;0;2;20;0
  155. WireConnection;0;9;35;0
  156. ASEEND*/
  157. //CHKSM=4426EC27F87838A2EBEE4512C3E425C8F5E43B61