The gltf-model component allows to use 3D models in the glTF format with A-Frame. glTF is a Khronos standard for efficient, full-scene 3D models and is optimised for usage on the web.
<a-entity gltf-model="url(https://cdn.rawgit.com/KhronosGroup/glTF-Sample-Models/9176d098/1.0/Duck/glTF/Duck.gltf)"></a-entity>
<a-entity gltf-model="#duck"></a-entity>
Parameter | Details |
---|---|
url(...) | will load the glTF model wrapped from the URL wrapped in url() |
#example | will load the <a-asset-item> with the ID example |