We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2353b4a commit c9da932Copy full SHA for c9da932
libs/soba/staging/src/spot-light/volumetric-mesh.ts
@@ -66,14 +66,27 @@ export class NgtsVolumetricMesh {
66
);
67
68
constructor() {
69
- this.spotLightInput.patch({
70
- opacity: 1,
71
- color: 'white',
72
- distance: 5,
73
- angle: 0.15,
74
- attenuation: 5,
75
- anglePower: 5,
76
- });
+ try {
+ this.spotLightInput.patch({
+ opacity: 1,
+ color: 'white',
+ distance: 5,
+ angle: 0.15,
+ attenuation: 5,
+ anglePower: 5,
77
+ });
78
+ } catch {
79
+ queueMicrotask(() => {
80
81
82
83
84
85
86
87
88
89
+ }
90
injectBeforeRender(() => {
91
const mesh = this.mesh.nativeElement;
92
if (!mesh) return;
0 commit comments