Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shader "Projector/Additive Tinted" {
- Properties {
- _Color ("Main Color", Color) = (1,0.5,0.5,1)
- _ShadowTex ("Cookie", 2D) = "" { TexGen ObjectLinear }
- _FalloffTex ("FallOff", 2D) = "" { TexGen ObjectLinear }
- }
- Subshader {
- Pass {
- ZWrite off
- Fog { Color (1, 1, 1) }
- Color [_Color]
- ColorMask RGB
- Blend One One
- Offset -1, -1
- SetTexture [_ShadowTex] {
- constantColor [_Color]
- combine texture * constant, ONE - texture
- Matrix [_Projector]
- }
- SetTexture [_FalloffTex] {
- constantColor (0,0,0,0)
- combine previous lerp (texture) constant
- Matrix [_ProjectorClip]
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement