don't use gl_ModelViewMatrix to compute linear depth, rather apply the inverse projection matrix to the clip space coordinate