We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b700ca6 commit dbe5cb6Copy full SHA for dbe5cb6
1 file changed
docs/components/gltf-model.md
@@ -78,6 +78,16 @@ file.
78
|----------|--------------------------------------|
79
| selector | Selector to an `<a-asset-item>` |
80
| string | `url()`-enclosed path to a glTF file |
81
+| Data URL | data:model/gltf-binary;base64,<data> |
82
+
83
84
+Data URL can be used for small glb files if you want to embed the assets in
85
+the html page. You can create a Data URL with those commands:
86
87
+```sh
88
+echo -n "data:model/gltf-binary;base64," >/tmp/base64.txt
89
+base64 -w 0 model.glb >>/tmp/base64.txt
90
+```
91
92
## Events
93
0 commit comments