(Tested) Fast Approximate Anti-Aliasing (FXAA) Demo (GLSL)

Article index:

2 – FXAA demo

With all these good arguments, I decided to code a small GeeXLab demo to test the GLSL version of FXAA II.

You can download the demo here:

Unzip the archive somewhere, and run the FXAA_Demo.exe. FXAA is enabled by default. Press SPACE to enable/disable FXAA.

The main source code file of the demo is DEMO.xml. The FXAA post processing shader is in the PostFX_FXAA_Lib.xml file.

As you can see in the following screenshots, FXAA works rather well:

FXAA demo - OpenGL / GLSL, GeeXLab
FXAA disabled

FXAA demo - OpenGL / GLSL, GeeXLab
FXAA enabled

Here is a zoom on the top of the X letter:

FXAA demo - OpenGL / GLSL, GeeXLab
FXAA disabled

FXAA demo - OpenGL / GLSL, GeeXLab
FXAA enabled

Article index:

11 thoughts on “(Tested) Fast Approximate Anti-Aliasing (FXAA) Demo (GLSL)”

  1. JeGX Post Author

    It’s only this demo or it’s GeeXLab that does not run under Wine? Could you test ShaderToyMark? Or simpler, just launch GeeXLab under Wine.

  2. Timothy Lottes

    FYI, the source you grabbed is only the lowest quality FXAA v2 preset designed for the consoles.

    FXAA v1 (not tested here) for PC is MUCH higher quality!!

  3. JeGX Post Author

    @Thimothy: so I can’t wait to test the FXAA v1, if you plan to release it. In any case, FXAA v2 produces very acceptable results 😉

  4. Joakim Dahl

    A bit blurry result but for the simplicity in implementation it might very well be worth it. I’ll add this to my engine as well. Thanks for posting!

  5. Licaon

    ShaderToyMark ( http://pastebin.com/0jtV1my8 ) does not say anything just sits there
    GeeXLab ( http://pastebin.com/7wG3QnjZ ) as the FXAA demo it just says ‘Loading scene Fxaa_demo.xml in progress…’ while it actually crashes and hangs there until i kill it from htop, CTRL-C does not help as you can see.

    Other OpenGL apps work ok both natively and through WINE despite whatever error messages WINE spits.

    Debian Sid 64bit, WINE 1.3.17 ( from git ), nvidia GTX460 on 270.18.

Comments are closed.