aada 0.1.0

纯 Rust 的 2D 骨骼动画引擎,兼容 Spine 4.x 导出格式(JSON + atlas)。求解到分层 Mesh 与各 Mesh 渲染设置为止,之后交给渲染器。
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "vertices_bind": [0.0, 0.0, 10.0, 0.0, 10.0, 10.0, 0.0, 10.0],
  "vertex_count": 4,
  "texture_name": "character_atlas.png",
  "uvs": [0.0, 0.0, 0.1, 0.0, 0.1, 0.1, 0.0, 0.1],
  "triangles": [0, 1, 2, 0, 2, 3],
  "bones": ["root", "bone1", "bone2"],
  "inverse_bind_matrices": [
    [1.0, 0.0, 0.0, 1.0, 0.0, 0.0],
    [1.0, 0.0, 0.0, 1.0, -5.0, 0.0],
    [1.0, 0.0, 0.0, 1.0, 5.0, 0.0]
  ],
  "influence_counts": [2, 2],
  "influence_bone_indices": [1, 2, 1, 2],
  "influence_weights": [0.3, 0.7, 0.3, 0.7]
}