Overlay camera not fixing weapon clipping issue

I am making an FPS game with URP. I have a seperate overlay camera for rendering my weapons, but they still clip through walls despite only being rendered by a different camera. My main camera does not have the Weapon layer enabled (which is the layer my weapons are on), only the overlay camera does. Help would be appreciated!

I had Clear depth disabled on the overlay camera, turning that setting on fixed the issue.