Mobile Particles Additive Culled.shader 835 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Shader "Mobile/Particles/Additive Culled" {
  2. Properties {
  3. _TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5)
  4. _MainTex ("Particle Texture", 2D) = "white" {}
  5. }
  6. Category {
  7. Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
  8. Blend SrcAlpha One
  9. AlphaTest Greater .01
  10. ColorMask RGB
  11. Cull Back Lighting Off ZWrite Off Fog { Mode Off }
  12. BindChannels {
  13. Bind "Color", color
  14. Bind "Vertex", vertex
  15. Bind "TexCoord", texcoord
  16. }
  17. // ---- Dual texture cards
  18. SubShader {
  19. Pass {
  20. SetTexture [_MainTex] {
  21. constantColor [_TintColor]
  22. combine constant * primary
  23. }
  24. SetTexture [_MainTex] {
  25. combine texture * previous DOUBLE
  26. }
  27. }
  28. }
  29. // ---- Single texture cards (does not do color tint)
  30. SubShader {
  31. Pass {
  32. SetTexture [_MainTex] {
  33. combine texture * primary
  34. }
  35. }
  36. }
  37. }
  38. }