From 06715f06189ed98690fd8dbf417719b101dd8027 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 2 Apr 2025 22:21:35 +0800 Subject: [PATCH] add standalone build script for materials --- Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile b/Makefile index c08fcc89..804cafde 100644 --- a/Makefile +++ b/Makefile @@ -28,12 +28,7 @@ ifndef FILAMENT_PATH @echo "FILAMENT_PATH is not set" else @echo "Using Filament build from ${FILAMENT_PATH}" - @for material in image unlit_fixed_size grid; do \ - ${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 + ./materials/build.sh endif resources: FORCE