RO_Effect_Ying_01.shader 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "RO/RO_Effect_Ying_01"
  4. {
  5. Properties
  6. {
  7. _R2("R2", Float) = 0
  8. _G1("G1", Float) = 0
  9. _G2("G2", Float) = 0
  10. _Float0("Float 0", Range( 0 , 1)) = 0
  11. _Float1("Float 1", Range( 0 , 1)) = 0
  12. _Color0("Color 0", Color) = (0,0,0,0)
  13. _TextureSample0("Texture Sample 0", 2D) = "white" {}
  14. [HideInInspector] _texcoord( "", 2D ) = "white" {}
  15. [HideInInspector] __dirty( "", Int ) = 1
  16. }
  17. SubShader
  18. {
  19. Tags{ "RenderType" = "Opaque" "Queue" = "AlphaTest+0" "IsEmissive" = "true" }
  20. Cull Off
  21. Blend SrcAlpha OneMinusSrcAlpha
  22. CGPROGRAM
  23. #include "UnityShaderVariables.cginc"
  24. #pragma target 3.0
  25. #pragma surface surf Unlit keepalpha noshadow noambient novertexlights nolightmap nodynlightmap nodirlightmap nofog nometa noforwardadd vertex:vertexDataFunc
  26. struct Input
  27. {
  28. float2 uv_texcoord;
  29. float3 worldPos;
  30. float3 worldNormal;
  31. float4 vertexColor : COLOR;
  32. };
  33. uniform float _R2;
  34. uniform float _G1;
  35. uniform float _G2;
  36. uniform sampler2D _TextureSample0;
  37. uniform float4 _TextureSample0_ST;
  38. uniform float4 _Color0;
  39. uniform float _Float0;
  40. uniform float _Float1;
  41. void vertexDataFunc( inout appdata_full v, out Input o )
  42. {
  43. UNITY_INITIALIZE_OUTPUT( Input, o );
  44. float3 appendResult24 = (float3(0.0 , ( sin( v.texcoord.z ) * v.color.r * _R2 ) , 0.0));
  45. float3 ase_vertex3Pos = v.vertex.xyz;
  46. float mulTime28 = _Time.y * _G1;
  47. float3 appendResult32 = (float3(0.0 , ( sin( mulTime28 ) * v.color.g * _G2 ) , 0.0));
  48. v.vertex.xyz += ( ( appendResult24 + ase_vertex3Pos + appendResult32 ) - ase_vertex3Pos );
  49. v.vertex.w = 1;
  50. }
  51. inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
  52. {
  53. return half4 ( 0, 0, 0, s.Alpha );
  54. }
  55. void surf( Input i , inout SurfaceOutput o )
  56. {
  57. float2 uv_TextureSample0 = i.uv_texcoord * _TextureSample0_ST.xy + _TextureSample0_ST.zw;
  58. float3 ase_worldPos = i.worldPos;
  59. float3 ase_worldViewDir = normalize( UnityWorldSpaceViewDir( ase_worldPos ) );
  60. float3 ase_worldNormal = i.worldNormal;
  61. float fresnelNdotV36 = dot( ase_worldNormal, ase_worldViewDir );
  62. float fresnelNode36 = ( 0.0 + 1.0 * pow( 1.0 - fresnelNdotV36, 1.0 ) );
  63. float smoothstepResult37 = smoothstep( _Float0 , saturate( ( _Float0 + _Float1 ) ) , saturate( fresnelNode36 ));
  64. o.Emission = ( tex2D( _TextureSample0, uv_TextureSample0 ) + ( _Color0 * smoothstepResult37 ) ).rgb;
  65. o.Alpha = i.vertexColor.a;
  66. }
  67. ENDCG
  68. }
  69. CustomEditor "ASEMaterialInspector"
  70. }
  71. /*ASEBEGIN
  72. Version=18707
  73. 2319;7;1512;1004;955.1885;375.6609;1;True;True
  74. Node;AmplifyShaderEditor.RangedFloatNode;26;-587.899,575.4585;Inherit;False;Property;_G1;G1;3;0;Create;True;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
  75. Node;AmplifyShaderEditor.RangedFloatNode;41;425.1783,154.0793;Inherit;False;Property;_Float1;Float 1;6;0;Create;True;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
  76. Node;AmplifyShaderEditor.RangedFloatNode;39;432.1783,65.07928;Inherit;False;Property;_Float0;Float 0;5;0;Create;True;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
  77. Node;AmplifyShaderEditor.TextureCoordinatesNode;51;-616.3518,-152.5812;Inherit;False;0;-1;4;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  78. Node;AmplifyShaderEditor.SimpleTimeNode;28;-365.0688,569.1791;Inherit;False;1;0;FLOAT;1;False;1;FLOAT;0
  79. Node;AmplifyShaderEditor.RangedFloatNode;19;-259.5571,305.5017;Inherit;False;Property;_R2;R2;2;0;Create;True;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
  80. Node;AmplifyShaderEditor.RangedFloatNode;31;-93.06885,703.1791;Inherit;False;Property;_G2;G2;4;0;Create;True;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
  81. Node;AmplifyShaderEditor.VertexColorNode;3;-633.4332,242.6599;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  82. Node;AmplifyShaderEditor.SinOpNode;29;-119.0688,575.1791;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  83. Node;AmplifyShaderEditor.SinOpNode;5;-278.8056,37.46788;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  84. Node;AmplifyShaderEditor.FresnelNode;36;375.1783,-111.9207;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;1;False;1;FLOAT;0
  85. Node;AmplifyShaderEditor.SimpleAddOpNode;40;760.1783,129.0793;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
  86. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;30;83.93115,566.1791;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
  87. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;10;-6.085144,97.69244;Inherit;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
  88. Node;AmplifyShaderEditor.SaturateNode;38;630.1783,-81.92072;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  89. Node;AmplifyShaderEditor.SaturateNode;42;892.1783,124.0793;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
  90. Node;AmplifyShaderEditor.DynamicAppendNode;32;278.9312,579.1791;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0
  91. Node;AmplifyShaderEditor.SmoothstepOpNode;37;1055.178,-19.92072;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;1;FLOAT;0
  92. Node;AmplifyShaderEditor.ColorNode;44;1127.178,-369.9207;Inherit;False;Property;_Color0;Color 0;7;0;Create;True;0;0;False;0;False;0,0,0,0;0,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  93. Node;AmplifyShaderEditor.PosVertexDataNode;11;-149.8852,373.9925;Inherit;False;0;0;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
  94. Node;AmplifyShaderEditor.DynamicAppendNode;24;150.4879,160.931;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0
  95. Node;AmplifyShaderEditor.SimpleMultiplyOpNode;50;1400.613,125.5843;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
  96. Node;AmplifyShaderEditor.SimpleAddOpNode;23;365.4879,229.931;Inherit;False;3;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;1;FLOAT3;0
  97. Node;AmplifyShaderEditor.SamplerNode;48;1601.431,-289.2024;Inherit;True;Property;_TextureSample0;Texture Sample 0;8;0;Create;True;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
  98. Node;AmplifyShaderEditor.RangedFloatNode;9;-696.2956,51.07892;Inherit;False;Property;_R1;R1;1;0;Create;True;0;0;False;0;False;1;1;0;0;0;1;FLOAT;0
  99. Node;AmplifyShaderEditor.SimpleAddOpNode;49;1991.236,-82.0011;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
  100. Node;AmplifyShaderEditor.SimpleSubtractOpNode;25;482.4879,323.931;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0
  101. Node;AmplifyShaderEditor.SimpleTimeNode;7;-488.7124,37.33312;Inherit;False;1;0;FLOAT;1;False;1;FLOAT;0
  102. Node;AmplifyShaderEditor.StandardSurfaceOutputNode;2;2238.343,166.4307;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;RO/RO_Effect_Ying_01;False;False;False;False;True;True;True;True;True;True;True;True;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;Custom;0.5;True;False;0;True;Opaque;;AlphaTest;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;False;2;5;False;-1;10;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;;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;False;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
  103. WireConnection;28;0;26;0
  104. WireConnection;29;0;28;0
  105. WireConnection;5;0;51;3
  106. WireConnection;40;0;39;0
  107. WireConnection;40;1;41;0
  108. WireConnection;30;0;29;0
  109. WireConnection;30;1;3;2
  110. WireConnection;30;2;31;0
  111. WireConnection;10;0;5;0
  112. WireConnection;10;1;3;1
  113. WireConnection;10;2;19;0
  114. WireConnection;38;0;36;0
  115. WireConnection;42;0;40;0
  116. WireConnection;32;1;30;0
  117. WireConnection;37;0;38;0
  118. WireConnection;37;1;39;0
  119. WireConnection;37;2;42;0
  120. WireConnection;24;1;10;0
  121. WireConnection;50;0;44;0
  122. WireConnection;50;1;37;0
  123. WireConnection;23;0;24;0
  124. WireConnection;23;1;11;0
  125. WireConnection;23;2;32;0
  126. WireConnection;49;0;48;0
  127. WireConnection;49;1;50;0
  128. WireConnection;25;0;23;0
  129. WireConnection;25;1;11;0
  130. WireConnection;7;0;9;0
  131. WireConnection;2;2;49;0
  132. WireConnection;2;9;3;4
  133. WireConnection;2;11;25;0
  134. ASEEND*/
  135. //CHKSM=69735AC4DFD224B49A48D16672932B03E5D707A0