Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 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"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
  12. Cull Back
  13. blend SrcAlpha OneMinusSrcAlpha
  14.  
  15. LOD 200
  16. CGPROGRAM
  17. #pragma surface surf Lambert exclude_path:prepass
  18.  
  19. sampler2D _MainTex;
  20. fixed4 _Color;
  21.  
  22. struct Input
  23. {
  24. float2 uv_MainTex;
  25. };
  26.  
  27. void surf (Input IN, inout SurfaceOutput o)
  28. {
  29. fixed4 c = tex2D(_MainTex, IN.uv_MainTex) * _Color;
  30. o.Albedo = c.rgb;
  31. o.Alpha = c.a;
  32. }
  33. ENDCG
  34. }
  35. Fallback "VertexLit"
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement