Skip to content

How it works

Import NgtpEffectComposer from angular-three-postprocessing

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

Render the NgtpEffectComposer component in your scene graph

1
@Component({
2
standalone: true,
3
imports: [NgtpEffectComposer],
4
template: `
5
<ngtp-effect-composer>
6
<!-- effects -->
7
</ngtp-effect-composer>
8
`,
9
schemas: [CUSTOM_ELEMENTS_SCHEMA],
10
})
11
export class SceneGraph {}

Pick an effect

1
import { NgtpEffectComposer } from 'angular-three-postprocessing';
2
import { NgtpEffectComposer, NgtpBloom, NgtpNoise } from 'angular-three-postprocessing';
3
4
@Component({
5
standalone: true,
6
imports: [NgtpEffectComposer, NgtpBloom, NgtpNoise],
7
template: `
8
<ngtp-effect-composer>
9
<ngtp-bloom />
10
<ngtp-noise />
11
</ngtp-effect-composer>
12
`,
13
schemas: [CUSTOM_ELEMENTS_SCHEMA],
14
})
15
export class SceneGraph {}

Example