clipping scanline, mod_sphere written not tested