SMAA
- Last UpdatedSep 10, 2023
- 1 minute read
Enhanced Subpixel Morphological Anti-aliasing (SMAA)
The algorithm
The algorithm is a 2D post-process algorithm by Universidad de Zaragoza and Crytek. SMAA takes the source image and produces an anti-aliased image using an edge-detection algorithm.
SMAA uses Jimenez's MLAA. Copyright (C) 2011 by Jorge Jimenez, Belen Masia, Jose I. Echevarria, Fernando Navarro and Diego Gutierrez.
Advantages and disadvantages
The main advantages are:
-
Less memory usage with respect to MSAA.
-
It anti-aliases everything, not just polygons edges.
The main disadvantages are:
-
Cannot fix aliasing problems inherent to the source image.
How to enable
SMAA is enabled from the configuration file: antialias à smaa à enable.
Requirements
SMAA can be used when one of the following render pipelines are enabled:
-
Default
-
DOF HDR B
Guidelines
You can adjust the quality using one of the quality presets from the config file: antialias à smaa à quality.
You can also select what kind of edge-detection algorithm the code uses, using the config file: antialias à smaa à edgeDetectionAlgorithm.
-
The Depth algorithm is the least expensive.
-
The Luma algorithm, while the most expensive, is the Color algorithm.
Each of these algorithms gives different results depending on the kind of scene they work on. So there is no definite rule for which one to use.
SMAA + DOF HDR B
The SMAA applies to the final scene before the HDR pass. Items such as fluids, refractions, shadow are anti-aliased.
Add an SMAA Post Process Effect to have the final scene completely anti-aliased with SMAA,
You can enable both MSAA and SMAA.