This commit is contained in:
2026-09-08 13:31:57 -07:00
commit 2637189690
257 changed files with 19205 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import 'package:flutter_scene/build_hooks.dart';
import 'package:hooks/hooks.dart';
void main(List<String> args) async {
await build(args, (input, output) async {
// flutter_scene:init:start
// Import .glb and .fscene sources under assets/, loadable by source path
// with loadScene (and hot-reloadable). A no-op when there are no scenes.
buildScenes(buildInput: input, buildOutput: output);
// Compile .fmat materials under assets/, loadable by source path with
// loadFmatMaterial (and hot-reloadable). A no-op when there are none.
await buildMaterials(buildInput: input, buildOutput: output);
// flutter_scene:init:end
buildTextures(
buildInput: input,
buildOutput: output,
textures: const [
'assets/david-front.png',
'assets/david-finish-mask.png',
'assets/card-back.png',
],
contents: const {
'assets/david-finish-mask.png': TextureContent.data,
},
alignForCompression: true,
);
});
}