Added depth test support. Need to test this