add standalone build script for materials
This commit is contained in:
7
Makefile
7
Makefile
@@ -28,12 +28,7 @@ ifndef FILAMENT_PATH
|
|||||||
@echo "FILAMENT_PATH is not set"
|
@echo "FILAMENT_PATH is not set"
|
||||||
else
|
else
|
||||||
@echo "Using Filament build from ${FILAMENT_PATH}"
|
@echo "Using Filament build from ${FILAMENT_PATH}"
|
||||||
@for material in image unlit_fixed_size grid; do \
|
./materials/build.sh
|
||||||
${FILAMENT_PATH}/matc -a opengl -a metal -a vulkan -o materials/$$material.filamat materials/$$material.mat || exit 1; \
|
|
||||||
$(FILAMENT_PATH)/resgen -c -p $$material -x thermion_dart/native/include/material/ materials/$$material.filamat; \
|
|
||||||
echo '#include "'$$material'.h"' | cat - thermion_dart/native/include/material/$$material.c > thermion_dart/native/include/material/$$material.c.new; \
|
|
||||||
mv thermion_dart/native/include/material/$$material.c.new thermion_dart/native/include/material/$$material.c; \
|
|
||||||
done
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
resources: FORCE
|
resources: FORCE
|
||||||
|
|||||||
Reference in New Issue
Block a user