Subpixel Morphological Anti-Aliasing ¶
SMAA can be regarded as an improvement over FXAA with more accurate edge detection and advanced gradient smoothing. It can be configured to use an additional predication buffer to further reduce false positives in the edge detection step.
const effect = new SMAAEffect({
preset: SMAAPreset.MEDIUM,
edgeDetectionMode: SMAAEdgeDetectionMode.COLOR,
predicationMode: SMAAPredicationMode.DEPTH
});
TipAnti-aliasing works best when applied after tone-mapping because it requires LDR input colors.