import 'package:flutter_scene/build_hooks.dart'; import 'package:hooks/hooks.dart'; void main(List 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, ); }); }