A real antialias routine

Blitz3D Forums/Blitz3D Programming/A real antialias routine

"If it took 6 samples of color from ONE pixel, wouldn't all six samples be the same color? :)"

I assume you're being facetious, but for others and in case you're not...

Antialiasing does take multiple samples from within the same pixel, but one sample might be at the center of the pixel, and another at the edge.

Normally, each pixel on the screen is the color of whatever happens to be at the very center of that square. Everything else in the square is ignored. That is why a pixel will go from being black to instantly being white as a square moves over it. In reality, if you took all the colors in that square defined by the pixel, you'd get shades of grey as a white square passes over a pixel with a black background.

Basically subpixel sampling is like making lots of smaller pixels within a pixel.