forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
accessor.sparse.schema.json
26 lines (26 loc) · 1.26 KB
/
accessor.sparse.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
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Accessor Sparse",
"type": "object",
"description": "Sparse storage of attributes that deviate from their initialization value.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"count": {
"type": "integer",
"description": "Number of entries stored in the sparse array.",
"minimum": 1,
"gltf_detailedDescription": "The number of attributes encoded in this sparse accessor."
},
"indices": {
"allOf": [ { "$ref": "accessor.sparse.indices.schema.json" } ],
"description": "Index array of size `count` that points to those accessor attributes that deviate from their initialization value. Indices must strictly increase."
},
"values": {
"allOf": [ { "$ref": "accessor.sparse.values.schema.json" } ],
"description": "Array of size `count` times number of components, storing the displaced accessor attributes pointed by `indices`. Substituted values must have the same `componentType` and number of components as the base accessor."
},
"extensions": { },
"extras": { }
},
"required": [ "count", "indices", "values" ]
}