Hacky wireframe depth calculation