Skip to content

Commit c7d28df

Browse files
committed
upgrade sem to latest version and set offer session to vr for vr only examples
1 parent d6bed61 commit c7d28df

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

examples/minecraft/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { createXRStore, XR } from '@react-three/xr'
1010
// This demo needs pointer-lock, that works only if you open it in a new window
1111
// Controls: WASD + left click
1212

13-
const store = createXRStore()
13+
const store = createXRStore({ offerSession: 'immersive-vr' })
1414

1515
export function App() {
1616
return (

examples/miniature/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useEffect, useState } from 'react'
44
import { Gltf, OrbitControls } from '@react-three/drei'
55
import { useStore } from 'zustand'
66

7-
const store = createXRStore()
7+
const store = createXRStore({ offerSession: 'immersive-vr' })
88

99
export function App() {
1010
const [miniature, setMinitature] = useState(false)

examples/rag-doll/src/App.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { useRef, Suspense } from 'react'
1010
const store = createXRStore({
1111
hand: { touchPointer: false },
1212
secondaryInputSources: true,
13+
offerSession: 'immersive-vr',
1314
})
1415

1516
export function App() {

examples/rollercoaster/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { AnimationMixer } from 'three'
66

77
const store = createXRStore({
88
controller: false,
9+
offerSession: 'immersive-vr',
910
})
1011

1112
export function App() {

examples/room-with-shadows/src/App.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const store = createXRStore({
3939
},
4040
},
4141
},
42+
offerSession: 'immersive-vr',
4243
})
4344

4445
export default function App() {

packages/xr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"dependencies": {
3737
"@iwer/devui": "^1.0.0",
38-
"@iwer/sem": "~0.2.0",
38+
"@iwer/sem": "~0.2.1",
3939
"@pmndrs/pointer-events": "workspace:~",
4040
"iwer": "^2.0.0",
4141
"meshline": "^3.3.1",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)