// Simplified Multiply Particle shader. Differences from regular Multiply Particle one:
// - no Smooth particle support
// - no AlphaTest
// - no ColorMask
Shader "Mobile/Particles/Multiply" {
Properties {
_MainTex ("Particle Texture", 2D) = "white" {}
}
Category {
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
Blend Zero SrcColor
Cull Off Lighting Off ZWrite Off Fog { Color (1,1,1,1) }
BindChannels {
Bind "Color", color
Bind "Vertex", vertex
Bind "TexCoord", texcoord
}
// ---- Dual texture cards
SubShader {
Pass {
SetTexture [_MainTex] {
combine texture * primary
}
SetTexture [_MainTex] {
constantColor (1,1,1,1)
combine previous lerp (previous) constant
}
}
}
// ---- Single texture cards (does not do particle colors)
SubShader {
Pass {
SetTexture [_MainTex] {
constantColor (1,1,1,1)
combine texture lerp(texture) constant
}
}
}
}
}
最終更新:2013年02月03日 00:19