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

NgtpSMAA

SMAA (Subpixel Morphological Anti-Aliasing) is a high-quality anti-aliasing technique that smooths jagged edges in the rendered scene.

import { NgtpEffectComposer, NgtpSMAA } from 'angular-three-postprocessing';
@Component({
template: `
<ngtp-effect-composer [options]="{ multisampling: 0 }">
<ngtp-smaa />
</ngtp-effect-composer>
`,
imports: [NgtpEffectComposer, NgtpSMAA],
})
export class SceneGraph {}
PropertyTypeDefaultDescription
presetSMAAPresetSMAAPreset.HIGHQuality preset (LOW, MEDIUM, HIGH, ULTRA)

When using SMAA, you typically want to disable the built-in multisampling on the effect composer by setting multisampling: 0.

<ngtp-effect-composer [options]="{ multisampling: 0 }">
<ngtp-smaa [options]="{ preset: SMAAPreset.ULTRA }" />
<!-- Other effects -->
<ngtp-bloom [options]="{ intensity: 0.5 }" />
</ngtp-effect-composer>