Last active
April 6, 2020 16:55
-
-
Save JustinGuese/6c2bd61252ac9947ce686928bc2bcb6e to your computer and use it in GitHub Desktop.
Basic code needed to visualize 3D models online, in AR and VR. Base code by https://github.com/Kristina-Simakova/ar-webview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="module" | |
src="https://unpkg.com/@google/model-viewer/dist/model-viewer.js"> | |
</script> | |
<!-- Loads <model-viewer> for old browsers like IE11: --> | |
<script nomodule | |
src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"> | |
</script> | |
<!-- The following libraries and polyfills are recommended to maximize browser support --> | |
<!-- NOTE: you must adjust the paths as appropriate for your project --> | |
<!-- ๐จ REQUIRED: Web Components polyfill to support Edge and Firefox < 63 --> | |
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.1.3/webcomponents-loader.js"></script> | |
<!-- ๐ OPTIONAL: Intersection Observer polyfill for better performance in Safari and IE11 --> | |
<script src="https://unpkg.com/intersection-observer@0.5.1/intersection-observer.js"></script> | |
<!-- ๐ OPTIONAL: Resize Observer polyfill improves resize behavior in non-Chrome browsers --> | |
<script src="https://unpkg.com/resize-observer-polyfill@1.5.1/dist/ResizeObserver.js"></script> | |
<!-- ๐ OPTIONAL: Fullscreen polyfill is required for experimental AR features in Canary --> | |
<!--<script src="https://unpkg.com/fullscreen-polyfill@1.0.2/dist/fullscreen.polyfill.js"></script>--> | |
<!-- ๐ OPTIONAL: Include prismatic.js for Magic Leap support --> | |
<!--<script src="https://unpkg.com/@magicleap/prismatic@0.18.2/prismatic.min.js"></script>--> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment