Additive_ZTA.shader 618 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Shader "MoleGame/Particles/Additive_ZTA"
  2. {
  3. Properties
  4. {
  5. _Color ("Main Color", Color) = (0.5,0.5,0.5,0.5)
  6. _MainTex ("Particle Texture", 2D) = "white" {}
  7. }
  8. Category
  9. {
  10. Tags { "Queue"="Transparent"}
  11. Blend SrcAlpha One
  12. Cull Off
  13. ZWrite Off
  14. ZTest Always
  15. Fog { Color (0,0,0,0) }
  16. BindChannels
  17. {
  18. Bind "Color", color
  19. Bind "Vertex", vertex
  20. Bind "TexCoord", texcoord
  21. }
  22. SubShader
  23. {
  24. Pass
  25. {
  26. SetTexture [_MainTex]
  27. {
  28. constantColor [_Color]
  29. combine constant * primary
  30. }
  31. SetTexture [_MainTex]
  32. {
  33. combine texture * previous double
  34. }
  35. }
  36. }
  37. }
  38. }