forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
animation.sampler.schema.json
28 lines (28 loc) · 1.51 KB
/
animation.sampler.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
{
"$schema" : "http://json-schema.org/draft-03/schema",
"title" : "animation sampler",
"type" : "object",
"description" : "Combines input and output parameters with an interpolation algorithm to define a keyframe graph (but not its target).",
"extends" : { "$ref" : "glTFProperty.schema.json" },
"properties" : {
"input" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The ID of a parameter in this animation to use as keyframe input, e.g., time.",
"required" : true,
"gltf_detailedDescription" : "The ID of a parameter in this animation to use as keyframe input. This parameter must have type `FLOAT`. The values represent time in seconds with `time[0] >= 0.0`, and monotonically increasing values, i.e., `time[n + 1] >= time[n]`."
},
"interpolation" : {
"type" : "string",
"description" : "Interpolation algorithm.",
"enum" : ["LINEAR"],
"default" : "LINEAR",
"gltf_detailedDescription" : "Interpolation algorithm. When an animation targets a node's rotation, and the animation's interpolation is `\"LINEAR\"`, spherical linear interpolation (slerp) should be used to interpolate quaternions."
},
"output" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The ID of a parameter in this animation to use as keyframe output.",
"required" : true
}
},
"additionalProperties" : false
}