Skip to content

Commit 0e79db7

Browse files
committed
Added polyfill to immersive-ar sample for consistency
1 parent 99d1eac commit 0e79db7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

proposals/immersive-ar-session.html

+8
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656
import {SkyboxNode} from '../js/render/nodes/skybox.js';
5757
import {InlineViewerHelper} from '../js/util/inline-viewer-helper.js';
5858
import {Gltf2Node} from '../js/render/nodes/gltf2.js';
59+
import {QueryArgs} from '../js/util/query-args.js';
60+
61+
// If requested, use the polyfill to provide support for mobile devices
62+
// and devices which only support WebVR.
63+
import WebXRPolyfill from '../js/third-party/webxr-polyfill/build/webxr-polyfill.module.js';
64+
if (QueryArgs.getBool('usePolyfill', true)) {
65+
let polyfill = new WebXRPolyfill();
66+
}
5967

6068
// XR globals.
6169
let xrButton = null;

0 commit comments

Comments
 (0)