forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
animation.schema.json
45 lines (45 loc) · 1.57 KB
/
animation.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
38
39
40
41
42
43
44
45
{
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "animation",
"type" : "object",
"description" : "A keyframe animation.",
"allOf" : [ { "$ref" : "glTFChildOfRootProperty.schema.json" } ],
"properties" : {
"name": {},
"extensions" : {},
"extras" : {},
"channels" : {
"type" : "array",
"description" : "An array of channels, each of which targets an animation's sampler at a node's property.",
"items" : {
"$ref" : "animation.channel.schema.json"
},
"default" : []
},
"parameters" : {
"type" : "object",
"description" : "A dictionary object of strings whose values are IDs of accessors with keyframe data, e.g., time, translation, rotation, etc.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "animation.parameter.schema.json"
},
"default" : {}
},
"samplers" : {
"type" : "object",
"description" : "A dictionary object of samplers that combines input and output parameters with an interpolation algorithm to define a keyframe graph (but not its target).",
"properties" : {
},
"additionalProperties" : {
"$ref" : "animation.sampler.schema.json"
},
"default" : {}
}
},
"dependencies" : {
"channels" : ["samplers"],
"samplers" : ["parameters"]
},
"additionalProperties" : false
}