implemented fragment filters and sprite clipping