First full impl of zbuffer calc, still untested.

Next up, I'll draw this to screen and start debugging it.