Debugged raycast vs. mesh, fixed a couple of bugs.

Still may be some epsilon problems causing pixels to get dropped, check
this later with a cube oriented to the camera direction!