fixed the tunnel precalc to produce a continuous 10 bit depth value