Anti-aliasing algorithms