HandShaderNoAlpha.shader 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt)
  2. // Simplified Diffuse shader. Differences from regular Diffuse one:
  3. // - no Main Color
  4. // - fully supports only 1 directional light. Other lights can affect it, but it will be per-vertex/SH.
  5. Shader "Mobile/SCDiffuseNoAlpha" {
  6. Properties{
  7. _MainTex("Base (RGB)", 2D) = "white" {}
  8. _Color("Color", Color) = (1,1,1,1)
  9. }
  10. SubShader
  11. {
  12. Tags { "RenderType" = "Opaque" }
  13. LOD 150
  14. CGPROGRAM
  15. #pragma surface surf Lambert noforwardadd
  16. sampler2D _MainTex;
  17. fixed _Alpha;
  18. fixed4 _Color;
  19. struct Input {
  20. float2 uv_MainTex;
  21. };
  22. void surf(Input IN, inout SurfaceOutput o) {
  23. fixed4 c = tex2D(_MainTex, IN.uv_MainTex) * _Color;
  24. o.Albedo = c.rgb;
  25. o.Alpha = c.a;
  26. }
  27. ENDCG
  28. }
  29. //Fallback "Mobile/VertexLit"
  30. }