Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
This should get you started… – Tetrad Aug 27 '11 at 3:00
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
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. – Daniel Pendergast Sep 8 '11 at 19:19

Your Answer


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.