RO_Effect_HuoJingLing2.shader 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "RO/Effect_HuoJingLing_02"
  4. {
  5. Properties
  6. {
  7. _ASEOutlineColor( "Outline Color", Color ) = (0.5566038,0.160208,0.02888039,0)
  8. _ASEOutlineWidth( "Outline Width", Float ) = 0.005
  9. _MainTex("MainTex", 2D) = "white" {}
  10. [HDR]_Color1("Color 1", Color) = (0,0,0,0)
  11. [HDR]_Color0("Color 0", Color) = (0,0,0,0)
  12. _TextureSample0("Texture Sample 0", 2D) = "white" {}
  13. [HDR]_Color2("Color 2", Color) = (0,0,0,0)
  14. _Vector0("Vector 0", Vector) = (0,0,0,0)
  15. _Fresnel("Fresnel", Float) = 1
  16. _FresnelColor("FresnelColor", Color) = (1,1,1,0)
  17. [HideInInspector] _texcoord( "", 2D ) = "white" {}
  18. [HideInInspector] __dirty( "", Int ) = 1
  19. }
  20. SubShader
  21. {
  22. Tags{ }
  23. Cull Front
  24. CGPROGRAM
  25. #pragma target 3.0
  26. #pragma surface outlineSurf Outline nofog keepalpha noshadow noambient novertexlights nolightmap nodynlightmap nodirlightmap nometa noforwardadd vertex:outlineVertexDataFunc
  27. struct Input {
  28. half filler;
  29. };
  30. float4 _ASEOutlineColor;
  31. float _ASEOutlineWidth;
  32. void outlineVertexDataFunc( inout appdata_full v, out Input o )
  33. {
  34. UNITY_INITIALIZE_OUTPUT( Input, o );
  35. v.vertex.xyz += ( v.normal * _ASEOutlineWidth );
  36. }
  37. inline half4 LightingOutline( SurfaceOutput s, half3 lightDir, half atten ) { return half4 ( 0,0,0, s.Alpha); }
  38. void outlineSurf( Input i, inout SurfaceOutput o )
  39. {
  40. o.Emission = _ASEOutlineColor.rgb;
  41. o.Alpha = 1;
  42. }
  43. ENDCG
  44. Tags{ "RenderType" = "Opaque" "Queue" = "Geometry+0" "IsEmissive" = "true" }
  45. Cull Back
  46. CGPROGRAM
  47. #include "UnityShaderVariables.cginc"
  48. #pragma target 3.0
  49. #pragma surface surf Unlit keepalpha noshadow exclude_path:deferred
  50. struct Input
  51. {
  52. float2 uv_texcoord;
  53. float3 worldPos;
  54. float3 worldNormal;
  55. };
  56. uniform float4 _Color0;
  57. uniform float4 _Color1;
  58. uniform sampler2D _MainTex;
  59. uniform float4 _MainTex_ST;
  60. uniform float _Fresnel;
  61. uniform float4 _FresnelColor;
  62. uniform sampler2D _TextureSample0;
  63. uniform float2 _Vector0;
  64. uniform float4 _TextureSample0_ST;
  65. uniform float4 _Color2;
  66. inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
  67. {
  68. return half4 ( 0, 0, 0, s.Alpha );
  69. }
  70. void surf( Input i , inout SurfaceOutput o )
  71. {
  72. float2 uv_MainTex = i.uv_texcoord * _MainTex_ST.xy + _MainTex_ST.zw;
  73. float4 tex2DNode1 = tex2D( _MainTex, uv_MainTex );
  74. float4 lerpResult9 = lerp( _Color0 , _Color1 , tex2DNode1.r);
  75. float3 ase_worldPos = i.worldPos;
  76. float3 ase_worldViewDir = normalize( UnityWorldSpaceViewDir( ase_worldPos ) );
  77. float3 ase_worldNormal = i.worldNormal;
  78. float fresnelNdotV4 = dot( ase_worldNormal, ase_worldViewDir );
  79. float fresnelNode4 = ( 0.0 + 1.0 * pow( 1.0 - fresnelNdotV4, _Fresnel ) );
  80. float2 uv0_TextureSample0 = i.uv_texcoord * _TextureSample0_ST.xy + _TextureSample0_ST.zw;
  81. float2 panner14 = ( 1.0 * _Time.y * _Vector0 + uv0_TextureSample0);
  82. o.Emission = ( lerpResult9 + ( saturate( fresnelNode4 ) * _FresnelColor ) + ( tex2DNode1.g * tex2D( _TextureSample0, panner14 ).r * _Color2 ) ).rgb;
  83. o.Alpha = 1;
  84. }
  85. ENDCG
  86. }
  87. CustomEditor "ASEMaterialInspector"
  88. }
  89. /*ASEBEGIN
  90. Version=18100
  91. 2183;7;1650;1004;-59.64972;364.8465;1.305416;True;True
  92. Node;AmplifyShaderEditor.TextureCoordinatesNode;15;-596.5853,-184.7045;Inherit;False;0;11;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
  93. Node;AmplifyShaderEditor.Vector2Node;16;-456.8756,105.3377;Inherit;False;Property;_Vector0;Vector 0;5;0;Create;True;0;0;False;0;False;0,0;0,0;0;3;FLOAT2;0;FLOAT;1;FLOAT;2
  94. Node;AmplifyShaderEditor.RangedFloatNode;17;465.4776,624.7019;Inherit;False;Property;_Fresnel;Fresnel;6;0;Create;True;0;0;False;0;False;1;4.3;0;0;0;1;FLOAT;0
  95. Node;AmplifyShaderEditor.PannerNode;14;-227.5545,-121.1337;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
  96. Node;AmplifyShaderEditor.FresnelNode;4;739.2516,389.9241;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
  97. Node;AmplifyShaderEditor.SaturateNode;8;998.9045,236.8309;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  98. Node;AmplifyShaderEditor.ColorNode;19;971.168,503.3624;Inherit;False;Property;_FresnelColor;FresnelColor;7;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
  99. Node;AmplifyShaderEditor.ColorNode;13;440.5767,325.7952;Inherit;False;Property;_Color2;Color 2;4;1;[HDR];Create;True;0;0;False;0;False;0,0,0,0;5.256154,1.809094,0.5702432,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  100. Node;AmplifyShaderEditor.SamplerNode;11;194.2849,77.51398;Inherit;True;Property;_TextureSample0;Texture Sample 0;3;0;Create;True;0;0;False;0;False;-1;None;6e3f5d7cd9ae64f40a0cf1dcfff28c95;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
  101. Node;AmplifyShaderEditor.SamplerNode;1;280.5384,-181.4767;Inherit;True;Property;_MainTex;MainTex;0;0;Create;True;0;0;False;0;False;-1;None;5b2359e493199a3438312996ae5bfdcf;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
  102. Node;AmplifyShaderEditor.ColorNode;2;296.8351,-566.7059;Inherit;False;Property;_Color0;Color 0;2;1;[HDR];Create;True;0;0;False;0;False;0,0,0,0;1.605559,1.042352,0.5716126,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  103. Node;AmplifyShaderEditor.ColorNode;10;304.8262,-382.5826;Inherit;False;Property;_Color1;Color 1;1;1;[HDR];Create;True;0;0;False;0;False;0,0,0,0;0.5188679,0.06711856,0.03671235,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  104. Node;AmplifyShaderEditor.LerpOp;9;699.6262,-442.2826;Inherit;False;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
  105. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;12;785.2849,-39.48602;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;COLOR;0,0,0,0;False;1;COLOR;0
  106. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;18;1187.188,289.7025;Inherit;False;2;2;0;FLOAT;0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
  107. Node;AmplifyShaderEditor.SimpleAddOpNode;5;1058.143,-47.61996;Inherit;False;3;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
  108. Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;1562.488,-128.2646;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;RO/Effect_HuoJingLing_02;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;Opaque;0.5;True;False;0;False;Opaque;;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;0;0;False;-1;0;False;-1;0;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;True;0.005;0.5566038,0.160208,0.02888039,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;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
  109. WireConnection;14;0;15;0
  110. WireConnection;14;2;16;0
  111. WireConnection;4;3;17;0
  112. WireConnection;8;0;4;0
  113. WireConnection;11;1;14;0
  114. WireConnection;9;0;2;0
  115. WireConnection;9;1;10;0
  116. WireConnection;9;2;1;1
  117. WireConnection;12;0;1;2
  118. WireConnection;12;1;11;1
  119. WireConnection;12;2;13;0
  120. WireConnection;18;0;8;0
  121. WireConnection;18;1;19;0
  122. WireConnection;5;0;9;0
  123. WireConnection;5;1;18;0
  124. WireConnection;5;2;12;0
  125. WireConnection;0;2;5;0
  126. ASEEND*/
  127. //CHKSM=60A0C5A2A3BC4698D44104CE3F38BD59639A549E