Applying FXAA
FXAA is a screen-space anti-aliasing technique that can be implemented as an extra full-screen post-process pass. FXAA works by identifying edges in the image and then smoothing them to reduce the appearance of aliasing. Without the need for any additional information from the scene, FXAA can be easily integrated into existing code. It’s also fast because it processes only the final rendered image pixels and some of their neighbors. In this recipe, you will learn about the FXAA technique. You will understand how it functions as a screen-space anti-aliasing method, how it can be applied through a post-process pass, and why it is a beneficial tool due to its ease of integration and speed. Note that FXAA is generally applied before gamma correction or any sRGB conversion. The reason for this is that FXAA works best on linear RGB data. If you apply FXAA after gamma correction or sRGB conversion, it may result in incorrect edge detection and thus less effective anti...