fade tests

This commit is contained in:
Nick Fisher
2024-06-04 20:54:16 +08:00
parent 3c289bd13d
commit 2f38cfceee

View File

@@ -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));
});
});
}