<model-tag>
Custom HTML Elements for displaying 3D models.
Demo: https://mrdoob.github.io/model-tag/ (Browser with Custom Elements
support required)
Usage
Add this in your page's <head>
.
<script src="model-gltf.js"></script>
Use <model-gltf>
to load and display your file.
<model-gltf src="example.gltf"/>
Same thing with model-obj
, model-stl
, model-three
, ...