-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
29 lines (22 loc) · 874 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import './index.css'
import * as tapHtml from './tap.html'
import * as footerHtml from './footer.html'
import {scenePipelineModule} from './scene.js'
import * as camerafeedHtml from './camerafeed.html'
const onxrloaded = () => {
XR8.addCameraPipelineModules([
XR8.GlTextureRenderer.pipelineModule(),
XR8.Threejs.pipelineModule(),
XR8.XrController.pipelineModule(),
window.LandingPage.pipelineModule(),
XRExtras.FullWindowCanvas.pipelineModule(),
XRExtras.Loading.pipelineModule(),
XRExtras.RuntimeError.pipelineModule(),
scenePipelineModule(),
])
document.body.insertAdjacentHTML('beforeend', camerafeedHtml)
document.body.insertAdjacentHTML('beforeend', footerHtml)
document.body.insertAdjacentHTML('beforeend', tapHtml)
XR8.run({canvas: document.getElementById('camerafeed')})
}
XRExtras.Loading.showLoading({onxrloaded})