-
-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support skeletal animation basics [flame_3d]
- Loading branch information
1 parent
9cb9527
commit 7d18cd9
Showing
8 changed files
with
121 additions
and
9 deletions.
There are no files selected for viewing
Binary file modified
BIN
+40.9 KB
(170%)
packages/flame_3d/assets/shaders/spatial_material.shaderbundle
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import 'package:flame_3d/core.dart'; | ||
|
||
class JointsInfo { | ||
/// Joints per surface idx | ||
Map<int, List<Matrix4>> jointTransformsPerSurface = {}; | ||
|
||
/// Joints for the current surface | ||
List<Matrix4> jointTransforms = []; | ||
|
||
void setSurface(int surfaceIdx) { | ||
jointTransforms = jointTransformsPerSurface[surfaceIdx] ?? []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters