摘要 |
An efficient method for width independent antialiasing of point primitives and line primitives in a frame buffer of a graphics computer system. The graphics computer system calculates an integral of an impulse response of a low pass filter. A plurality of values representative of the integral of the impulse response are stored in a look-up table. The plurality of values are indexed with respect to distance. A primitive is rasterized into the frame buffer, wherein the primitive is either a point primitive or a line primitive. The distance of a resulting fragment from the center of the primitive is then calculated. The look-up table is then entered using the distance as an argument, and a corresponding one of the plurality of values is retrieved. This value is used as a blending weight for the fragment. The color of the fragment is then blended into the frame buffer using the one of the plurality of values as the blending weight. In so doing, the primitive is properly antialiased regardless of its width.
|