duck

duck

Dec 9th, 2010
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. Shader "RD/Particle/Additive" {
  2. Properties {
  3.     _TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5)
  4.     _MainTex ("Particle Texture", 2D) = "white" {}
  5. }
  6.  
  7. Category {
  8.     Tags { "Queue"="Transparent+10" "IgnoreProjector"="True" "RenderType"="Transparent" }
  9.     Blend SrcAlpha One
  10.     ColorMask RGBA
  11.     Cull Off Lighting Off ZWrite Off Fog { Color (0,0,0,0) }
  12.     BindChannels {
  13.         Bind "Color", color
  14.         Bind "Vertex", vertex
  15.         Bind "TexCoord", texcoord
  16.     }
  17.    
  18.     // ---- Dual texture cards
  19.     SubShader {
  20.         Pass {
  21.             SetTexture [_MainTex] {
  22.                 constantColor [_TintColor]
  23.                 combine constant * primary
  24.             }
  25.             SetTexture [_MainTex] {
  26.                 combine texture * previous DOUBLE
  27.             }
  28.         }
  29.     }
  30.    
  31.     // ---- Single texture cards (does not do color tint)
  32.     SubShader {
  33.         Pass {
  34.             SetTexture [_MainTex] {
  35.                 combine texture * primary
  36.             }
  37.         }
  38.     }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment