The z value in eye coordinates, zeye, can be computed from the window
coordinate z value,
zwindow, using the near and far plane values, near and far,
from the glFrustum() command and the viewport near and far values,
farvp and nearvp, from the glDepthRange() command using
the equation:
The z window coordinate is computed from the eye coordinate z using
the equation: