Skip to content

Commit 74bbdc8

Browse files
Update canvas-portal.tsx
setting the cameras `matrixAutoUpdate` and ` matrixWorldAutoUpdate` to `true` in `canvas-portal.tsx` enables object matrices in the `overlay` layer to be computed correctly, allowing compatibility with three.js version 166 and above. *Note:* this has not yet been backward compatibility tested for use with three.js r165
1 parent 236a4a4 commit 74bbdc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/canvas-overlay/canvas-portal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export const CanvasPortal = memo<CanvasPortalProps>(({
3030

3131
return <Canvas
3232
camera={{
33-
matrixAutoUpdate: false,
34-
matrixWorldAutoUpdate: false,
33+
matrixAutoUpdate: true,
34+
matrixWorldAutoUpdate: true,
3535
}}
3636
events={events}
3737
eventSource={eventSource}

0 commit comments

Comments
 (0)