| 1234567891011121314151617181920212223242526272829303132 |
- // Simplified Additive Particle shader. Differences from regular Additive Particle one:
- // - no Tint color
- // - no Smooth particle support
- // - no AlphaTest
- // - no ColorMask
- Shader "Custom/Particles/AdditiveMasked" {
- Properties
- {
- _MainTex("Base (RGB)", 2D) = "white" {}
- _Mask("Culling Mask", 2D) = "white" {}
- }
- Category{
- Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" "PreviewType" = "Plane" }
- Blend SrcAlpha One
- Cull Off Lighting Off ZWrite Off Fog{ Color(0,0,0,0) }
- BindChannels{
- Bind "Color", color
- Bind "Vertex", vertex
- Bind "TexCoord", texcoord
- }
- SubShader{
- Pass{
- SetTexture[_Mask] {combine texture * primary}
- SetTexture[_MainTex] {combine texture * previous}
- }
- }
- }
- }
|