|
1 | 1 | import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, signal } from '@angular/core';
|
2 |
| -import { NgtArgs, NgtHexify, NgtSelect, NgtSelection } from 'angular-three'; |
3 |
| -import { NgtpEffectComposer, NgtpOutline } from 'angular-three-postprocessing'; |
| 2 | +import { NgtArgs, NgtSelect, NgtSelection } from 'angular-three'; |
| 3 | +import { NgtpEffectComposer, NgtpOutline, NgtpSMAA } from 'angular-three-postprocessing'; |
4 | 4 | import { NgtsOrbitControls } from 'angular-three-soba/controls';
|
| 5 | +import { KernelSize } from 'postprocessing'; |
5 | 6 |
|
6 | 7 | /**
|
7 | 8 | * There are multiple ways to use the Outline effect.
|
@@ -50,16 +51,18 @@ import { NgtsOrbitControls } from 'angular-three-soba/controls';
|
50 | 51 | </ngt-mesh>
|
51 | 52 | </ngt-group>
|
52 | 53 |
|
53 |
| - <ngtp-effect-composer [options]="{ autoClear: false }"> |
54 |
| - <ngtp-outline [options]="{ edgeStrength: 100, pulseSpeed: 0 }" /> |
| 54 | + <ngtp-effect-composer [options]="{ autoClear: false, multisampling: 0 }"> |
| 55 | + <ngtp-outline [options]="{ edgeStrength: 2.5, pulseSpeed: 0, blur: true, kernelSize: KernelSize.SMALL }" /> |
| 56 | + <ngtp-smaa /> |
55 | 57 | </ngtp-effect-composer>
|
56 | 58 | `,
|
57 | 59 | schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
58 | 60 | changeDetection: ChangeDetectionStrategy.OnPush,
|
59 | 61 | host: { class: 'postprocessing-sample' },
|
60 | 62 | hostDirectives: [NgtSelection],
|
61 |
| - imports: [NgtsOrbitControls, NgtSelect, NgtHexify, NgtpEffectComposer, NgtpOutline, NgtArgs], |
| 63 | + imports: [NgtsOrbitControls, NgtSelect, NgtpEffectComposer, NgtpOutline, NgtArgs, NgtpSMAA], |
62 | 64 | })
|
63 | 65 | export class Experience {
|
| 66 | + KernelSize = KernelSize; |
64 | 67 | hovered = signal(false);
|
65 | 68 | }
|
0 commit comments