Skip to content

How it works

Import NgtpEffectComposer from angular-three-postprocessing

import { NgtpEffectComposer } from 'angular-three-postprocessing';

Render the NgtpEffectComposer component in your scene graph

@Component({
standalone: true,
imports: [NgtpEffectComposer],
template: `
<ngtp-effect-composer>
<!-- effects -->
</ngtp-effect-composer>
`,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class SceneGraph {}

Pick an effect

import { NgtpEffectComposer } from 'angular-three-postprocessing';
import { NgtpEffectComposer, NgtpBloom, NgtpNoise } from 'angular-three-postprocessing';
@Component({
standalone: true,
imports: [NgtpEffectComposer, NgtpBloom, NgtpNoise],
template: `
<ngtp-effect-composer>
<ngtp-bloom />
<ngtp-noise />
</ngtp-effect-composer>
`,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class SceneGraph {}

Example