Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shader "RD/Particle/Additive" {
- Properties {
- _TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5)
- _MainTex ("Particle Texture", 2D) = "white" {}
- }
- Category {
- Tags { "Queue"="Transparent+10" "IgnoreProjector"="True" "RenderType"="Transparent" }
- Blend SrcAlpha One
- ColorMask RGBA
- Cull Off Lighting Off ZWrite Off Fog { Color (0,0,0,0) }
- 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
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment