MORE RE-ORGANIZING
This commit is contained in:
28
spikes/flutter-scene-spike/hook/build.dart
Normal file
28
spikes/flutter-scene-spike/hook/build.dart
Normal 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,
|
||||
);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user