Created
January 31, 2023 02:35
-
-
Save donmccurdy/93de2a0ef347417a281e44a59596c8b5 to your computer and use it in GitHub Desktop.
Example script for batch CLI processing with glTF Transform.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILES="./path/to/models/*.glb" | |
for file in $FILES; do | |
echo "Compressing $file..." | |
gltf-transform draco "${file%.glb}.glb" "${file%.glb}-draco.glb" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment