Rewrite depth calculations that use 3 bytes of data to use multiples of two when multiplying and dividing.
Allows 3 bytes to be represented in a float without rounding.
Depth is now scaled from [0..0.99999994039] instead of from [0..1] as a result of these changes.