Skip to content

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
});
Tip

Anti-aliasing works best when applied after tone-mapping because it requires LDR input colors.

External Resources