Fast Approximate Anti-aliasing (FXAA)

Source:
http://www.geeks3d.com/20110405/fxaa-fast-approximate-anti-aliasing-demo-glsl-opengl-test-radeon-geforce/

Does subtle AA to edges, fast and often better than straight blurring a rough mask.
To have a stronger effect stack mutliple.

Uploaded: almost 5 years ago
Updated: over 4 years ago
Version: 1
File Name: FXAA_(grayscale).zip
Size: 5.13 KB

DownloadblackDOWNLOAD



DISCUSS
over 4 years ago

does this only work in 8 bit? - i apply it to a 16 bit height map and it ridges things up. can't really see what this is doing.


over 4 years ago

It subtly smooths strong edges, works well on aliased masks. If you want to smooth a height map try super sampling as in generate at twice the resolution and use a Transform2D node to scale down with bilinear filtering.


over 4 years ago

One of the downsides of FXAA is the introduction of artifacts especially on gradients, so I'd use it on aliased masks only and I'd chain multiple together for a stronger effect.
I assume gradient noise or gradients in general for the height field. This should work with 16 bit images regardless.
If you want to get rid of aliased edges in a mixed mask, mask the parts out that should not be affected and composite the masks together. The algorithm has edge detection and should apply the filter only there but it ain't perfect by far.


almost 3 years ago

This is great! I'm using it quite a bit.