Hi,
I'm trying to draw a weapon model using HUD, but I have a problem.
My weapon model goes through walls.
like this:
If I clear the depth buffer before drawing the weapon model, the model doesn't go through walls,
but this method can't use render lights because the depth buffer is already cleared.
Any solutions to fix this problem?