Projector Light.shader 683 B

1234567891011121314151617181920212223242526
  1. Shader "Projector/Light" {
  2. Properties {
  3. _Color ("Main Color", Color) = (1,1,1,1)
  4. _ShadowTex ("Cookie", 2D) = "" { TexGen ObjectLinear }
  5. _FalloffTex ("FallOff", 2D) = "" { TexGen ObjectLinear }
  6. }
  7. Subshader {
  8. Pass {
  9. ZWrite off
  10. Fog { Color (0, 0, 0) }
  11. Color [_Color]
  12. ColorMask RGB
  13. Blend DstColor One
  14. Offset -1, -1
  15. SetTexture [_ShadowTex] {
  16. combine texture * primary, ONE - texture
  17. Matrix [_Projector]
  18. }
  19. SetTexture [_FalloffTex] {
  20. constantColor (0,0,0,0)
  21. combine previous lerp (texture) constant
  22. Matrix [_ProjectorClip]
  23. }
  24. }
  25. }
  26. }