added rasterization, almost fixed clipping