Files
JJBB/Assets/UnusedAssets/Res_newMS/TeXiao/Shaders/Mobile/Additive Alpha.shader
2024-08-23 15:49:34 +08:00

42 lines
848 B
Plaintext

Shader "Mobile/Particles/Additive Alpha" {
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 OneMinusSrcAlpha
//AlphaTest Greater .01
ColorMask RGB
Cull Off 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
}
}
}
}
}