Advertisement
infinite_ammo

UnlitAlphaBlended.shader

Apr 5th, 2012
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Shader "Library/Unlit - Alpha Blended"
  2. {
  3. Properties
  4. {
  5. _Color ("Main Color", Color) = (1,1,1,1)
  6. _MainTex ("Base (RGB)", 2D) = "white" {}
  7. }
  8. Category
  9. {
  10. Fog { Mode off }
  11. ZWrite Off
  12. Cull Off
  13. SubShader
  14. {
  15. Tags {"Queue" = "Transparent"}
  16. Pass
  17. {
  18. Blend SrcAlpha OneMinusSrcAlpha
  19. Lighting Off
  20. SetTexture [_MainTex]
  21. {
  22. constantColor [_Color]
  23. Combine texture * constant, texture * constant
  24. }
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement