Diffuse.shader 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "RO/Diffuse"
  4. {
  5. Properties
  6. {
  7. _MainTex("MainTex", 2D) = "white" {}
  8. [HideInInspector] _texcoord( "", 2D ) = "white" {}
  9. [HideInInspector] __dirty( "", Int ) = 1
  10. }
  11. SubShader
  12. {
  13. Tags{ "RenderType" = "Opaque" "Queue" = "Geometry+0" "IsEmissive" = "true" }
  14. Cull Back
  15. CGPROGRAM
  16. #pragma target 3.0
  17. #pragma surface surf Unlit keepalpha noshadow
  18. struct Input
  19. {
  20. float2 uv_texcoord;
  21. };
  22. uniform sampler2D _MainTex;
  23. uniform float4 _MainTex_ST;
  24. inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
  25. {
  26. return half4 ( 0, 0, 0, s.Alpha );
  27. }
  28. void surf( Input i , inout SurfaceOutput o )
  29. {
  30. float2 uv_MainTex = i.uv_texcoord * _MainTex_ST.xy + _MainTex_ST.zw;
  31. o.Emission = tex2D( _MainTex, uv_MainTex ).rgb;
  32. o.Alpha = 1;
  33. }
  34. ENDCG
  35. }
  36. CustomEditor "ASEMaterialInspector"
  37. }
  38. /*ASEBEGIN
  39. Version=18100
  40. 2043;7;1650;1004;1077.592;544.5264;1;True;True
  41. Node;AmplifyShaderEditor.SamplerNode;2;-459.592,-8.526367;Inherit;True;Property;_MainTex;MainTex;0;0;Create;True;0;0;False;0;False;-1;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
  42. Node;AmplifyShaderEditor.StandardSurfaceOutputNode;3;-25,-45;Float;False;True;-1;2;ASEMaterialInspector;0;0;Unlit;RO/Alpha;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;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;0;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;;-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
  43. WireConnection;3;2;2;0
  44. ASEEND*/
  45. //CHKSM=E03A15BB063B252D8BFDCE5525D4219944232FD2