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 37edaa3 commit 3106b79Copy full SHA for 3106b79
libs/soba/staging/src/spot-light/spot-light-shadow-mesh.ts
@@ -46,7 +46,9 @@ function injectShadowMeshCommon(
46
if (!spotLight) return;
47
if (isSpotLight(spotLight)) {
48
spotLight.shadow.mapSize.set(width(), height());
49
- spotLight.shadow.map.setSize(width(), height());
+ if (spotLight.shadow.map) {
50
+ spotLight.shadow.map.setSize(width(), height());
51
+ }
52
spotLight.shadow.needsUpdate = true;
53
} else {
54
throw new Error('<ngts-spot-light-shadow> must be a child of a <ngts-spot-light>');
0 commit comments