Setting depth testing and writing correctly.
Merge remote-tracking branch 'fluffyfreak/depthFixes'