Apex › Storage & databases

How GPUs smooth jagged edges (MSAA)

Why slanted edges staircase into jaggies — each pixel is fully inside or outside a triangle — and how multisample antialiasing fixes it cheaply. Supersampling renders at N× and averages, but shades N× too. MSAA takes N coverage samples per pixel (is each inside?) but shades once, then blends each pixel by its coverage — smooth edges at close to no extra shading, since only edge pixels aren’t fully in/out. Verified: 4-sample coverage matches the true area coverage. Toggle it on and off and tilt the edge.

More in Storage & databases