You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

66 lines
4.0 KiB

// Made with Amplify Shader Editor
// Available at the Unity Asset Store - http://u3d.as/y3X
Shader "Animmal/Surface"
{
Properties
{
_Albedo("Albedo", 2D) = "white" {}
_Specular("Specular ", 2D) = "white" {}
_Specular_Intensity("Specular_Intensity", Range( 0 , 3)) = 0
_TextureSample0("Texture Sample 0", 2D) = "bump" {}
[HideInInspector] _texcoord( "", 2D ) = "white" {}
[HideInInspector] __dirty( "", Int ) = 1
}
SubShader
{
Tags{ "RenderType" = "Opaque" "Queue" = "Geometry+0" }
Cull Back
CGPROGRAM
#pragma target 3.0
#pragma surface surf StandardSpecular keepalpha addshadow fullforwardshadows
struct Input
{
float2 uv_texcoord;
};
uniform sampler2D _TextureSample0;
uniform float4 _TextureSample0_ST;
uniform sampler2D _Albedo;
uniform float4 _Albedo_ST;
uniform sampler2D _Specular;
uniform float4 _Specular_ST;
uniform float _Specular_Intensity;
void surf( Input i , inout SurfaceOutputStandardSpecular o )
{
float2 uv_TextureSample0 = i.uv_texcoord * _TextureSample0_ST.xy + _TextureSample0_ST.zw;
o.Normal = UnpackNormal( tex2D( _TextureSample0, uv_TextureSample0 ) );
float2 uv_Albedo = i.uv_texcoord * _Albedo_ST.xy + _Albedo_ST.zw;
o.Albedo = tex2D( _Albedo, uv_Albedo ).rgb;
float2 uv_Specular = i.uv_texcoord * _Specular_ST.xy + _Specular_ST.zw;
o.Smoothness = ( tex2D( _Specular, uv_Specular ) * _Specular_Intensity ).r;
o.Alpha = 1;
}
ENDCG
}
Fallback "Diffuse"
CustomEditor "ASEMaterialInspector"
}
/*ASEBEGIN
Version=14501
293;259;1471;639;871.86;131.5561;1.3;True;True
Node;AmplifyShaderEditor.SamplerNode;6;-395.3647,256.8018;Float;True;Property;_Specular;Specular ;1;0;Create;True;0;None;None;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.RangedFloatNode;9;-358.5359,446.1716;Float;False;Property;_Specular_Intensity;Specular_Intensity;2;0;Create;True;0;0;0.73634;0;3;0;1;FLOAT;0
Node;AmplifyShaderEditor.SamplerNode;11;-407.7597,58.24387;Float;True;Property;_TextureSample0;Texture Sample 0;3;0;Create;True;0;None;c0cf77e8e0659d443a3f690ac55c1271;True;0;True;bump;Auto;True;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;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SamplerNode;1;-454.0268,-139.8326;Float;True;Property;_Albedo;Albedo;0;0;Create;True;0;None;a6e3909a0ee7d3940998341e850ff699;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.SimpleMultiplyOpNode;8;-8.237061,314.9474;Float;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;238.8806,-20.25016;Float;False;True;2;Float;ASEMaterialInspector;0;0;StandardSpecular;Animmal/Surface;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;Back;0;0;False;0;0;False;0;Opaque;0.5;True;True;0;False;Opaque;;Geometry;All;True;True;True;True;True;True;True;True;True;True;True;True;True;True;True;True;True;False;0;255;255;0;0;0;0;0;0;0;0;False;2;15;10;25;False;0.5;True;0;Zero;Zero;0;Zero;Zero;OFF;OFF;0;False;0;0,0,0,0;VertexOffset;True;False;Cylindrical;False;Relative;0;;-1;-1;-1;-1;0;0;0;False;0;0;16;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;4;FLOAT;0;False;5;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;8;0;6;0
WireConnection;8;1;9;0
WireConnection;0;0;1;0
WireConnection;0;1;11;0
WireConnection;0;4;8;0
ASEEND*/
//CHKSM=2A9550212D8DA78803EEF1F01D437659AC07207F