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.

65 lines
4.0 KiB

  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "Animmal/Surface"
  4. {
  5. Properties
  6. {
  7. _Albedo("Albedo", 2D) = "white" {}
  8. _Specular("Specular ", 2D) = "white" {}
  9. _Specular_Intensity("Specular_Intensity", Range( 0 , 3)) = 0
  10. _TextureSample0("Texture Sample 0", 2D) = "bump" {}
  11. [HideInInspector] _texcoord( "", 2D ) = "white" {}
  12. [HideInInspector] __dirty( "", Int ) = 1
  13. }
  14. SubShader
  15. {
  16. Tags{ "RenderType" = "Opaque" "Queue" = "Geometry+0" }
  17. Cull Back
  18. CGPROGRAM
  19. #pragma target 3.0
  20. #pragma surface surf StandardSpecular keepalpha addshadow fullforwardshadows
  21. struct Input
  22. {
  23. float2 uv_texcoord;
  24. };
  25. uniform sampler2D _TextureSample0;
  26. uniform float4 _TextureSample0_ST;
  27. uniform sampler2D _Albedo;
  28. uniform float4 _Albedo_ST;
  29. uniform sampler2D _Specular;
  30. uniform float4 _Specular_ST;
  31. uniform float _Specular_Intensity;
  32. void surf( Input i , inout SurfaceOutputStandardSpecular o )
  33. {
  34. float2 uv_TextureSample0 = i.uv_texcoord * _TextureSample0_ST.xy + _TextureSample0_ST.zw;
  35. o.Normal = UnpackNormal( tex2D( _TextureSample0, uv_TextureSample0 ) );
  36. float2 uv_Albedo = i.uv_texcoord * _Albedo_ST.xy + _Albedo_ST.zw;
  37. o.Albedo = tex2D( _Albedo, uv_Albedo ).rgb;
  38. float2 uv_Specular = i.uv_texcoord * _Specular_ST.xy + _Specular_ST.zw;
  39. o.Smoothness = ( tex2D( _Specular, uv_Specular ) * _Specular_Intensity ).r;
  40. o.Alpha = 1;
  41. }
  42. ENDCG
  43. }
  44. Fallback "Diffuse"
  45. CustomEditor "ASEMaterialInspector"
  46. }
  47. /*ASEBEGIN
  48. Version=14501
  49. 293;259;1471;639;871.86;131.5561;1.3;True;True
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. WireConnection;8;0;6;0
  57. WireConnection;8;1;9;0
  58. WireConnection;0;0;1;0
  59. WireConnection;0;1;11;0
  60. WireConnection;0;4;8;0
  61. ASEEND*/
  62. //CHKSM=2A9550212D8DA78803EEF1F01D437659AC07207F