Skip to content

Commit

Permalink
feat: support for gltf,glb models
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Jun 9, 2023
1 parent 32ec009 commit d7a8e45
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,11 @@ $(DIST)/%.js: $(SRC)/%.b64
cat $< | jq -c > $@

%.glb.compressed: %.glb
npx gltf-transform optimize $< $@
npx gltf-transform optimize $< $*.tmp.glb
cp $*.tmp.glb $@
rm $*.tmp.glb
%.glb: %.gltf
cp $< $@

# Fallback for all other extensions
%.compressed: %
echo "WARNING: COPYING $* WITH NO COMPRESSION"
cp $< $@
npx gltf-transform copy $< $@

.PHONY: clean
clean:
Expand Down

0 comments on commit d7a8e45

Please sign in to comment.