Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Shader "Projector/Additive Tinted" {
  2. Properties {
  3. _Color ("Main Color", Color) = (1,0.5,0.5,1)
  4. _ShadowTex ("Cookie", 2D) = "" { TexGen ObjectLinear }
  5. _FalloffTex ("FallOff", 2D) = "" { TexGen ObjectLinear }
  6. }
  7. Subshader {
  8. Pass {
  9. ZWrite off
  10. Fog { Color (1, 1, 1) }
  11. Color [_Color]
  12. ColorMask RGB
  13. Blend One One
  14. Offset -1, -1
  15. SetTexture [_ShadowTex] {
  16. constantColor [_Color]
  17. combine texture * constant, ONE - texture
  18. Matrix [_Projector]
  19. }
  20. SetTexture [_FalloffTex] {
  21. constantColor (0,0,0,0)
  22. combine previous lerp (texture) constant
  23. Matrix [_ProjectorClip]
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement