Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Shader "Custom/transparentwithshadow"
  2. {
  3. Properties
  4. {
  5. _Color ("Main Color", Color) = (1,1,1,1)
  6. _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
  7. }
  8.  
  9. SubShader
  10. {
  11. Tags {"Queue"="AlphaTest" "IgnoreProjector"="True" "RenderType"="Geometry"}
  12. blend SrcAlpha OneMinusSrcAlpha
  13.  
  14. LOD 200
  15. CGPROGRAM
  16. #pragma surface surf Lambert exclude_path:prepass
  17.  
  18. sampler2D _MainTex;
  19. fixed4 _Color;
  20.  
  21. struct Input
  22. {
  23. float2 uv_MainTex;
  24. };
  25.  
  26. void surf (Input IN, inout SurfaceOutput o)
  27. {
  28. fixed4 c = tex2D(_MainTex, IN.uv_MainTex) * _Color;
  29. o.Albedo = c.rgb;
  30. o.Alpha = c.a;
  31. }
  32. ENDCG
  33. }
  34. Fallback "VertexLit"
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement