Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

How did the creators of TF2 make the glow on the payload cart visible through walls? Is it possible to implement this in Unity's shaderlab?

share|improve this question
9  
This should get you started gamedev.stackexchange.com/questions/16391/… –  Tetrad Aug 27 '11 at 3:00
1  
check out this shader from the unify wiki. this is very close to the shader your looking for. –  jonas Sep 27 '11 at 9:24
add comment

1 Answer

up vote 2 down vote accepted

To make a shader that only draws when occluded by other geometry, use ZTest Greater. To always draw, use ZTest Always. Ensure your shader is late in the render queue. The glow itself is a different problem, personally I like rim lighting effects for such things - like inner glow rather than outer glow.

share|improve this answer
    
awesome. thanks. –  Dan the Man Sep 8 '11 at 19:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.