fixes to 3D rendering. polygons are almost pixel-perfect. clipping still doesn't get colors quite right.