forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
skin.schema.json
37 lines (37 loc) · 1.66 KB
/
skin.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "skin",
"type" : "object",
"description" : "Joints and matrices defining a skin.",
"allOf" : [ { "$ref" : "glTFChildOfRootProperty.schema.json" } ],
"properties" : {
"name" : {},
"extensions" : {},
"extras" : {},
"bindShapeMatrix" : {
"type" : "array",
"description" : "Floating-point 4x4 transformation matrix stored in column-major order.",
"items" : {
"type": "number"
},
"minItems" : 16,
"maxItems" : 16,
"default" : [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ]
},
"inverseBindMatrices" : {
"allOf" : [ { "$ref" : "glTFid.schema.json" } ],
"description" : "The ID of the accessor containing the floating-point 4x4 inverse-bind matrices."
},
"jointNames" : {
"type" : "array",
"description" : "Joint names of the joints (nodes with a `jointName` property) in this skin.",
"items" : {
"$ref" : "glTFid.schema.json"
},
"uniqueItems" : true,
"gltf_detailedDescription" : "Joint names of the joints (nodes with a `jointName` property) in this skin. The array length is the same as the `count` property of the `inverseBindMatrices` accessor, and the same as the total quantity of all skeleton nodes from node-trees referenced by the skinned mesh instance node's `skeletons` array."
}
},
"additionalProperties" : false,
"required" : ["inverseBindMatrices", "jointNames"]
}