MobileMaskedAdditive.shader 755 B

1234567891011121314151617181920212223242526272829303132
  1. // Simplified Additive Particle shader. Differences from regular Additive Particle one:
  2. // - no Tint color
  3. // - no Smooth particle support
  4. // - no AlphaTest
  5. // - no ColorMask
  6. Shader "Custom/Particles/AdditiveMasked" {
  7. Properties
  8. {
  9. _MainTex("Base (RGB)", 2D) = "white" {}
  10. _Mask("Culling Mask", 2D) = "white" {}
  11. }
  12. Category{
  13. Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" "PreviewType" = "Plane" }
  14. Blend SrcAlpha One
  15. Cull Off Lighting Off ZWrite Off Fog{ Color(0,0,0,0) }
  16. BindChannels{
  17. Bind "Color", color
  18. Bind "Vertex", vertex
  19. Bind "TexCoord", texcoord
  20. }
  21. SubShader{
  22. Pass{
  23. SetTexture[_Mask] {combine texture * primary}
  24. SetTexture[_MainTex] {combine texture * previous}
  25. }
  26. }
  27. }
  28. }