Skip to content

Commit 4a3d1e6

Browse files
committed
fix: inverted aspect ratio in xr
1 parent 912496c commit 4a3d1e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/xr/src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ export function createXRStore<T extends XRElementImplementations>(options?: XRSt
680680
}
681681
const xrCamera = xrManager.getCamera()
682682
//update camera aspect ratio
683-
xrCamera.aspect = xrCamera.projectionMatrix.elements[0] / xrCamera.projectionMatrix.elements[5]
683+
xrCamera.aspect = xrCamera.projectionMatrix.elements[5] / xrCamera.projectionMatrix.elements[0]
684684

685685
const currentLayers = session?.renderState.layers
686686
if (currentLayers == null) {

0 commit comments

Comments
 (0)