Last active
August 8, 2020 11:40
-
-
Save xwipeoutx/b2b2b189dd037409b41c7b4183613e81 to your computer and use it in GitHub Desktop.
Hello, World of WebXR - an astronaut in your living room.
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
<html> | |
<head> | |
<title>Model Viewer Example</title> | |
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script> | |
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script> | |
</head> | |
<body> | |
<model-viewer src="https://stevesspace.com/assets/models/Astronaut.glb" | |
ar ar-modes="webxr scene-viewer quick-look" ar-scale="auto" camera-controls | |
alt="A 3D model of an astronaut" | |
skybox-image="https://stevesspace.com/assets/environments/aircraft_workshop_01_1k.hdr" | |
ios-src="https://stevesspace.com/assets/models/Astronaut.usdz"></model-viewer> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment