added support for clipping polygons to screen bounds, not yet enabled since it doesn't help performance, will use in future