Skip to content

Instantly share code, notes, and snippets.

@xwipeoutx
Last active August 8, 2020 11:40
Show Gist options
  • Save xwipeoutx/b2b2b189dd037409b41c7b4183613e81 to your computer and use it in GitHub Desktop.
Save xwipeoutx/b2b2b189dd037409b41c7b4183613e81 to your computer and use it in GitHub Desktop.
Hello, World of WebXR - an astronaut in your living room.
<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