Fixed depth buffer issues with 3d camera