From 2f38cfceee56144cd3ce73f265a947bf5f73e37e Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 4 Jun 2024 20:54:16 +0800 Subject: [PATCH] fade tests --- dart_filament/test/integration_test.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dart_filament/test/integration_test.dart b/dart_filament/test/integration_test.dart index 155e5b62..1dd12b0c 100644 --- a/dart_filament/test/integration_test.dart +++ b/dart_filament/test/integration_test.dart @@ -117,5 +117,14 @@ void main() async { await viewer.addBoneAnimation(model, animation); }); + test('fade in/out', () async { + var model = await viewer.loadGlb("$testDir/assets/shapes.glb"); + var animation = BVHParser.parse( + File("$testDir/assets/animation.bvh").readAsStringSync(), + boneRegex: RegExp(r"Bone$")); + await viewer.addBoneAnimation(model, animation, + fadeInInSecs: 0.5, fadeOutInSecs: 0.5); + await Future.delayed(Duration(seconds: 1)); + }); }); }