t3d - depth func