| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- // Made with Amplify Shader Editor
- // Available at the Unity Asset Store - http://u3d.as/y3X
- Shader "RO/Effect_HuoJingLing_02"
- {
- Properties
- {
- _ASEOutlineColor( "Outline Color", Color ) = (0.5566038,0.160208,0.02888039,0)
- _ASEOutlineWidth( "Outline Width", Float ) = 0.005
- _MainTex("MainTex", 2D) = "white" {}
- [HDR]_Color1("Color 1", Color) = (0,0,0,0)
- [HDR]_Color0("Color 0", Color) = (0,0,0,0)
- _TextureSample0("Texture Sample 0", 2D) = "white" {}
- [HDR]_Color2("Color 2", Color) = (0,0,0,0)
- _Vector0("Vector 0", Vector) = (0,0,0,0)
- _Fresnel("Fresnel", Float) = 1
- _FresnelColor("FresnelColor", Color) = (1,1,1,0)
- [HideInInspector] _texcoord( "", 2D ) = "white" {}
- [HideInInspector] __dirty( "", Int ) = 1
- }
- SubShader
- {
- Tags{ }
- Cull Front
- CGPROGRAM
- #pragma target 3.0
- #pragma surface outlineSurf Outline nofog keepalpha noshadow noambient novertexlights nolightmap nodynlightmap nodirlightmap nometa noforwardadd vertex:outlineVertexDataFunc
-
-
-
- struct Input {
- half filler;
- };
- float4 _ASEOutlineColor;
- float _ASEOutlineWidth;
- void outlineVertexDataFunc( inout appdata_full v, out Input o )
- {
- UNITY_INITIALIZE_OUTPUT( Input, o );
- v.vertex.xyz += ( v.normal * _ASEOutlineWidth );
- }
- inline half4 LightingOutline( SurfaceOutput s, half3 lightDir, half atten ) { return half4 ( 0,0,0, s.Alpha); }
- void outlineSurf( Input i, inout SurfaceOutput o )
- {
- o.Emission = _ASEOutlineColor.rgb;
- o.Alpha = 1;
- }
- ENDCG
-
- Tags{ "RenderType" = "Opaque" "Queue" = "Geometry+0" "IsEmissive" = "true" }
- Cull Back
- CGPROGRAM
- #include "UnityShaderVariables.cginc"
- #pragma target 3.0
- #pragma surface surf Unlit keepalpha noshadow exclude_path:deferred
- struct Input
- {
- float2 uv_texcoord;
- float3 worldPos;
- float3 worldNormal;
- };
- uniform float4 _Color0;
- uniform float4 _Color1;
- uniform sampler2D _MainTex;
- uniform float4 _MainTex_ST;
- uniform float _Fresnel;
- uniform float4 _FresnelColor;
- uniform sampler2D _TextureSample0;
- uniform float2 _Vector0;
- uniform float4 _TextureSample0_ST;
- uniform float4 _Color2;
- inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
- {
- return half4 ( 0, 0, 0, s.Alpha );
- }
- void surf( Input i , inout SurfaceOutput o )
- {
- float2 uv_MainTex = i.uv_texcoord * _MainTex_ST.xy + _MainTex_ST.zw;
- float4 tex2DNode1 = tex2D( _MainTex, uv_MainTex );
- float4 lerpResult9 = lerp( _Color0 , _Color1 , tex2DNode1.r);
- float3 ase_worldPos = i.worldPos;
- float3 ase_worldViewDir = normalize( UnityWorldSpaceViewDir( ase_worldPos ) );
- float3 ase_worldNormal = i.worldNormal;
- float fresnelNdotV4 = dot( ase_worldNormal, ase_worldViewDir );
- float fresnelNode4 = ( 0.0 + 1.0 * pow( 1.0 - fresnelNdotV4, _Fresnel ) );
- float2 uv0_TextureSample0 = i.uv_texcoord * _TextureSample0_ST.xy + _TextureSample0_ST.zw;
- float2 panner14 = ( 1.0 * _Time.y * _Vector0 + uv0_TextureSample0);
- o.Emission = ( lerpResult9 + ( saturate( fresnelNode4 ) * _FresnelColor ) + ( tex2DNode1.g * tex2D( _TextureSample0, panner14 ).r * _Color2 ) ).rgb;
- o.Alpha = 1;
- }
- ENDCG
- }
- CustomEditor "ASEMaterialInspector"
- }
- /*ASEBEGIN
- Version=18100
- 2183;7;1650;1004;-59.64972;364.8465;1.305416;True;True
- 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
- 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
- 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
- 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
- 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
- Node;AmplifyShaderEditor.SaturateNode;8;998.9045,236.8309;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- WireConnection;14;0;15;0
- WireConnection;14;2;16;0
- WireConnection;4;3;17;0
- WireConnection;8;0;4;0
- WireConnection;11;1;14;0
- WireConnection;9;0;2;0
- WireConnection;9;1;10;0
- WireConnection;9;2;1;1
- WireConnection;12;0;1;2
- WireConnection;12;1;11;1
- WireConnection;12;2;13;0
- WireConnection;18;0;8;0
- WireConnection;18;1;19;0
- WireConnection;5;0;9;0
- WireConnection;5;1;18;0
- WireConnection;5;2;12;0
- WireConnection;0;2;5;0
- ASEEND*/
- //CHKSM=60A0C5A2A3BC4698D44104CE3F38BD59639A549E
|