Skip to content

Commit

Permalink
depth sensing example
Browse files Browse the repository at this point in the history
  • Loading branch information
bbohlender committed Aug 9, 2024
1 parent 21d76fc commit 7eadfe0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/stage/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Model } from './Datsun.jsx'
import { XROrigin, XR, createXRStore } from '@react-three/xr'
import { Suspense } from 'react'

const store = createXRStore()
const store = createXRStore({ depthSensing: true, hand: false })

export default function App() {
return (
Expand Down Expand Up @@ -49,7 +49,9 @@ export default function App() {
</group>
</group>
<OrbitControls />
<Environment preset="dawn" blur={1} />
<Suspense>
<Environment preset="dawn" blur={1} />
</Suspense>
</XR>
</Canvas>
</>
Expand Down

0 comments on commit 7eadfe0

Please sign in to comment.