iakov.dev

Antialiasing in the Glow engine

· 1 min read

The Glow engine finally has antialiasing.

I used the Directionally Localized Antialiasing algorithm, the one from The Force Unleashed 2. It works in image space as a post-process. A high-pass filter finds the edges, and then they get blurred with a 5x5 kernel, or a 16x16 one for long edges.

It looks good. My screenshots have suffered from jaggies for a long time, and now they don’t.

Antialiasing off:

Scene with antialiasing off, showing jagged edges

Antialiasing on:

The same scene with antialiasing on