CFXM_MobileParticleAdd_Alpha8.shader 782 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. // Cartoon FX difference:
  7. // - uses Alpha8 monochrome textures to save up on texture memory size
  8. Shader "Cartoon FX/Mobile Particles Additive Alpha8"
  9. {
  10. Properties
  11. {
  12. _MainTex ("Particle Texture (Alpha8)", 2D) = "white" {}
  13. }
  14. Category
  15. {
  16. Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
  17. Blend SrcAlpha One
  18. Cull Off Lighting Off ZWrite Off Fog { Color (0,0,0,0) }
  19. BindChannels
  20. {
  21. Bind "Color", color
  22. Bind "Vertex", vertex
  23. Bind "TexCoord", texcoord
  24. }
  25. SubShader
  26. {
  27. Pass
  28. {
  29. SetTexture [_MainTex]
  30. {
  31. combine primary, texture * primary
  32. }
  33. }
  34. }
  35. }
  36. }