Skip to content
🎉 Angular Three v4 is here! Read the announcement

NgtpFXAA

FXAA (Fast Approximate Anti-Aliasing) is a screen-space anti-aliasing technique that smooths jagged edges with minimal performance impact.

import { NgtpEffectComposer, NgtpFXAA } from 'angular-three-postprocessing';
@Component({
template: `
<ngtp-effect-composer [options]="{ multisampling: 0 }">
<ngtp-fxaa />
</ngtp-effect-composer>
`,
imports: [NgtpEffectComposer, NgtpFXAA],
})
export class SceneGraph {}
PropertyTypeDefaultDescription
blendFunctionBlendFunctionBlendFunction.SRCHow the effect blends
@Component({
template: `
<ngt-mesh [rotation]="[0.5, 0.5, 0]">
<ngt-box-geometry />
<ngt-mesh-standard-material color="steelblue" />
</ngt-mesh>
<!-- Disable multisampling and use FXAA instead -->
<ngtp-effect-composer [options]="{ multisampling: 0 }">
<ngtp-fxaa />
</ngtp-effect-composer>
`,
imports: [NgtpEffectComposer, NgtpFXAA],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class SceneGraph {}
FeatureFXAASMAA
PerformanceFasterSlightly slower
QualityGoodBetter
BlurringMay blur fine detailsPreserves details better
Use casePerformance-criticalQuality-focused
  • Set multisampling: 0 on the effect composer when using FXAA to avoid redundant anti-aliasing
  • FXAA is faster than SMAA but may slightly blur textures and fine details
  • Good choice for mobile or performance-critical applications
  • Consider SMAA if quality is more important than performance