| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- // Made with Amplify Shader Editor
- // Available at the Unity Asset Store - http://u3d.as/y3X
- Shader "RO/RO_Effect_Fresnel_01"
- {
- Properties
- {
- [HDR]_Color0("Color 0", Color) = (1,1,1,0)
- [HDR]_Color1("Color 1", Color) = (0,0,0,0)
- _Vector0("Vector 0", Vector) = (1,0,0,0)
- [HideInInspector] __dirty( "", Int ) = 1
- }
- SubShader
- {
- Tags{ "RenderType" = "Custom" "Queue" = "Transparent+0" "IsEmissive" = "true" }
- Cull Back
- ZWrite Off
- ZTest LEqual
- Blend SrcAlpha OneMinusSrcAlpha
-
- CGPROGRAM
- #pragma target 3.0
- #pragma surface surf Unlit keepalpha noshadow noambient novertexlights nolightmap nodynlightmap nodirlightmap nometa noforwardadd
- struct Input
- {
- float4 vertexColor : COLOR;
- float3 worldPos;
- float3 worldNormal;
- };
- uniform float4 _Color0;
- uniform float4 _Color1;
- uniform float4 _Vector0;
- inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
- {
- return half4 ( 0, 0, 0, s.Alpha );
- }
- void surf( Input i , inout SurfaceOutput o )
- {
- float3 ase_worldPos = i.worldPos;
- float3 ase_worldViewDir = normalize( UnityWorldSpaceViewDir( ase_worldPos ) );
- float3 ase_worldNormal = i.worldNormal;
- float fresnelNdotV16 = dot( ase_worldNormal, ase_worldViewDir );
- float fresnelNode16 = ( 0.0 + 1.0 * pow( 1.0 - fresnelNdotV16, _Vector0.x ) );
- float4 lerpResult20 = lerp( _Color0 , _Color1 , ( saturate( fresnelNode16 ) * _Vector0.y ));
- float4 temp_output_23_0 = saturate( lerpResult20 );
- o.Emission = ( i.vertexColor * temp_output_23_0 ).rgb;
- o.Alpha = ( i.vertexColor.a * (temp_output_23_0).a );
- }
- ENDCG
- }
- CustomEditor "ASEMaterialInspector"
- }
- /*ASEBEGIN
- Version=18100
- 2389;7;1442;1004;-2798.578;-143.2004;1.482496;True;True
- Node;AmplifyShaderEditor.Vector4Node;99;2991.504,1103.999;Inherit;False;Property;_Vector0;Vector 0;3;0;Create;True;0;0;False;0;False;1,0,0,0;1.61,1.27,0.64,0;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
- Node;AmplifyShaderEditor.FresnelNode;16;3236.217,775.1404;Inherit;True;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;143;3570.351,811.622;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
- Node;AmplifyShaderEditor.SimpleMultiplyOpNode;19;3752.899,882.8539;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
- Node;AmplifyShaderEditor.ColorNode;21;3498.11,239.5145;Inherit;False;Property;_Color0;Color 0;1;1;[HDR];Create;True;0;0;False;0;False;1,1,1,0;0,0.02731139,0.08876202,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
- Node;AmplifyShaderEditor.ColorNode;22;3492.188,571.2829;Inherit;False;Property;_Color1;Color 1;2;1;[HDR];Create;True;0;0;False;0;False;0,0,0,0;0.6418176,1.310947,2.608238,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
- Node;AmplifyShaderEditor.LerpOp;20;3811.979,549.4662;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.SaturateNode;23;3969.981,554.9569;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
- Node;AmplifyShaderEditor.VertexColorNode;103;3809.952,331.989;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
- Node;AmplifyShaderEditor.ComponentMaskNode;145;4059.892,793.064;Inherit;False;False;False;False;True;1;0;COLOR;0,0,0,0;False;1;FLOAT;0
- Node;AmplifyShaderEditor.SimpleMultiplyOpNode;104;4232.218,511.9019;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
- Node;AmplifyShaderEditor.SimpleMultiplyOpNode;144;4287.432,751.4012;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
- Node;AmplifyShaderEditor.StandardSurfaceOutputNode;110;4629.251,581.9988;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;RO/RO_Effect_Fresnel_01;False;False;False;False;True;True;True;True;True;False;True;True;False;False;False;False;False;False;False;False;False;Back;2;False;-1;3;False;-1;False;0;False;-1;0;False;-1;False;0;Custom;0.5;True;False;0;True;Custom;;Transparent;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;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;16;3;99;1
- WireConnection;143;0;16;0
- WireConnection;19;0;143;0
- WireConnection;19;1;99;2
- WireConnection;20;0;21;0
- WireConnection;20;1;22;0
- WireConnection;20;2;19;0
- WireConnection;23;0;20;0
- WireConnection;145;0;23;0
- WireConnection;104;0;103;0
- WireConnection;104;1;23;0
- WireConnection;144;0;103;4
- WireConnection;144;1;145;0
- WireConnection;110;2;104;0
- WireConnection;110;9;144;0
- ASEEND*/
- //CHKSM=04E3ADDDF6C57FD7E187596F939A39A187270E51
|