快速近似反走样是一种后处理式反走样技术,其效果好、效率高,但由于是根据亮度值检测边缘,导致模型纹理贴图上的条纹和高光部分也会被检测出来,从而造成不必要的反走样。针对这一问题,该算法提出了一种改进的反走样方法:根据物理和阴影信息检测出模型与阴影边缘,再以边缘周围状况计算确定混合朝向,最后结合亚像素覆盖率进行反走样运算。实验表明,该算法在保留了原快速近似反走样效率的同时,有效地消除了不必要的反走样。
Fast approximate anti-aliasing is a post process anti-aliasing technology, which performs perfectly and effectively. It detects the edges by luminance, so stripes of texture and highlight on models are detected, resulting in unnecessary anti-aliasing. To solve the problem, this paper provided a new method : detected the edges of models and shadows, based on physical information and shadows information, and then computed blending direction according to edges' ambient conditions. Finally, the blending direction was combined with sub-pixel coverage to achieve the goal of anti-aliasing. Experiments show that this algorithm can effectively eliminate the unnecessary anti-aliasing with retaining its excellent effect.