add+blend.shader 962 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. Shader "MoleGame/Efxadd/add+blend"
  2. {
  3. Properties
  4. {
  5. _Color ("Main Color", Color) = (0.5,0.5,0.5,0.5)
  6. _MainTex ("Particle Texture", 2D) = "white" {}
  7. _Color2 ("Main Color 2", Color) = (0.5,0.5,0.5,0.5)
  8. _MainTex2 ("Particle Texture 2", 2D) = "white" {}
  9. }
  10. Category
  11. {
  12. Tags { "Queue"="Transparent"}
  13. Cull Off
  14. ZWrite Off
  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. //AA
  25. Pass
  26. {
  27. Blend SrcAlpha One
  28. SetTexture [_MainTex]
  29. {
  30. constantColor [_Color]
  31. combine constant * primary
  32. }
  33. SetTexture [_MainTex]
  34. {
  35. combine texture * previous double
  36. }
  37. }
  38. //AB
  39. Pass
  40. {
  41. Blend SrcAlpha OneMinusSrcAlpha
  42. SetTexture [_MainTex2]
  43. {
  44. constantColor [_Color2]
  45. combine constant * primary
  46. }
  47. SetTexture [_MainTex2]
  48. {
  49. combine texture * previous double
  50. }
  51. }
  52. }
  53. }
  54. }