If you wanted to draw a player’s gun
without letting it get clipped inside
the environment, you would set one
Camera at Depth 0 to draw the
environment, and another Camera at
Depth 1 to draw the weapon alone. The
weapon Camera’s Clear Flags should be
set to to depth only. This will keep
the graphical display of the
environment on the screen, but discard
all information about where each
object exists in 3-D space. When the
gun is drawn, the opaque parts will
completely cover anything drawn,
regardless of how close the gun is to
the wall.