Drawing player gun without depth test
Hi,
For my shooter the player must have a gun. This gun should always be visible, so if I stand close to a wall, it must not get through the wall. So I thought, I'll disable the depth test, but that causes the gun to get rendered incorrectly (every part get's drawn upon eachother).
How can I fix this?
Quote:Original post by Revelation60You can simply render it last with the depth test enabled but with clearing the depth buffer before you render it.
Hi,
For my shooter the player must have a gun. This gun should always be visible, so if I stand close to a wall, it must not get through the wall. So I thought, I'll disable the depth test, but that causes the gun to get rendered incorrectly (every part get's drawn upon eachother).
How can I fix this?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement