3
\$\begingroup\$

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?

\$\endgroup\$
2
\$\begingroup\$

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.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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