@@ -20,22 +20,22 @@ <h1>[name]</h1>
2020 < h2 > Workflow</ h2 >
2121
2222 < p >
23- First, you have to include [link:https://github.com/mrdoob/three.js/blob/master/examples/js/vr/WebVR .js WebVR .js]
23+ First, you have to include [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/webxr/VRButton .js VRButton .js]
2424 into your project.
2525 </ p >
2626
2727 < code >
28- import { WEBVR } from 'three/examples/jsm/vr/WebVR .js';
28+ import { VRButton } from 'three/examples/jsm/webxr/VRButton .js';
2929 </ code >
3030
3131 < p >
32- *WEBVR .createButton()* does two important things: It creates a button which indicates
32+ *VRButton .createButton()* does two important things: It creates a button which indicates
3333 VR compatibility. Besides, it initiates a VR session if the user activates the button. The only thing you have
3434 to do is to add the following line of code to your app.
3535 </ p >
3636
3737 < code >
38- document.body.appendChild( WEBVR .createButton( renderer ) );
38+ document.body.appendChild( VRButton .createButton( renderer ) );
3939 </ code >
4040
4141 < p >
@@ -65,17 +65,18 @@ <h2>Next Steps</h2>
6565 < p >
6666 Have a look at one of the official WebVR examples to see this workflow in action.< br /> < br />
6767
68- [example:webvr_ballshooter WebVR / ballshoter]< br />
69- [example:webvr_cubes WebVR / cubes]< br />
70- [example:webvr_dragging WebVR / dragging]< br />
71- [example:webvr_lorenzattractor WebVR / lorenzattractor]< br />
72- [example:webvr_panorama WebVR / panorama]< br />
73- [example:webvr_paint WebVR / paint]< br />
74- [example:webvr_rollercoaster WebVR / rollercoaster]< br />
75- [example:webvr_sandbox WebVR / sandbox]< br />
76- [example:webvr_sculpt WebVR / sculpt]< br />
77- [example:webvr_vive_paint WebVR / vive / paint]< br />
78- [example:webvr_vive_sculpt WebVR / vive / sculpt]< br />
68+ [example:webxr_vr_ballshooter WebXR / VR / ballshoter]< br />
69+ [example:webxr_vr_cubes WebXR / VR / cubes]< br />
70+ [example:webxr_vr_dragging WebXR / VR / dragging]< br />
71+ [example:webxr_vr_lorenzattractor WebXR / VR / lorenzattractor]< br />
72+ [example:webxr_vr_multiview WebXR / VR / multiview]< br />
73+ [example:webxr_vr_paint WebXR / VR / paint]< br />
74+ [example:webxr_vr_panorama_depth WebXR / VR / panorama_depth]< br />
75+ [example:webxr_vr_panorama WebXR / VR / panorama]< br />
76+ [example:webxr_vr_rollercoaster WebXR / VR / rollercoaster]< br />
77+ [example:webxr_vr_sandbox WebXR / VR / sandbox]< br />
78+ [example:webxr_vr_sculpt WebXR / VR / sculpt]< br />
79+ [example:webxr_vr_video WebXR / VR / video]
7980 </ p >
8081
8182</ body >
0 commit comments