How to render weapon in FPS game w/o clipped (using 1 Camera)?

Hi all,

You know in FPS game, they can render the weapon without being clipped / obstructed by wall or any object directly in front of them. I know one of the trick to achieve this is by using another camera to render only the weapon itself.

Is there any other trick to achieve this without adding another camera? Maybe by disabling depth testing on the weapon, using special shader, or something else.

Thanks for the help.

Hopefully this answers your question.

Not sure why you would want to do it another way, as this is convention, but you may be able to jiggle the layers and rendering around to get something similar, but there’d always be the risk of clipping.