xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/root/bin/a-gltf-model

8 lines
237 B
Plaintext
Raw Normal View History

2024-11-19 16:17:06 +01:00
#!/bin/sh
test -n "$1" || { echo "usage: a-gltf-model <gltf-file>"; exit; }
2024-11-20 15:40:17 +01:00
file="$(readlink -f "$1")"
file="${file#/}" # strip leading slash if present
2024-11-19 16:17:06 +01:00
echo "<a-gltf-model src='file://xrsh/$file'></a-gltf-model>" >> /root/index.html