1234567891011121314151617181920212223242526272829303132333435363738394041 |
- Shader "Mobile/Particles/Additive Culled" {
- Properties {
- _TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5)
- _MainTex ("Particle Texture", 2D) = "white" {}
- }
- Category {
- Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
- Blend SrcAlpha One
- AlphaTest Greater .01
- ColorMask RGB
- Cull Back Lighting Off ZWrite Off Fog { Mode Off }
- BindChannels {
- Bind "Color", color
- Bind "Vertex", vertex
- Bind "TexCoord", texcoord
- }
-
- // ---- Dual texture cards
- SubShader {
- Pass {
- SetTexture [_MainTex] {
- constantColor [_TintColor]
- combine constant * primary
- }
- SetTexture [_MainTex] {
- combine texture * previous DOUBLE
- }
- }
- }
-
- // ---- Single texture cards (does not do color tint)
- SubShader {
- Pass {
- SetTexture [_MainTex] {
- combine texture * primary
- }
- }
- }
- }
- }
|