forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glTF.schema.json
154 lines (154 loc) · 5.11 KB
/
glTF.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "glTF",
"type": "object",
"description": "The root object for a glTF asset.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"extensionsUsed": {
"type": "array",
"description": "Names of glTF extensions used somewhere in this asset.",
"items": {
"type": "string"
},
"uniqueItems": true,
"minItems": 1
},
"extensionsRequired": {
"type": "array",
"description": "Names of glTF extensions required to properly load this asset.",
"items": {
"type": "string"
},
"uniqueItems": true,
"minItems": 1
},
"accessors": {
"type": "array",
"description": "An array of accessors.",
"items": {
"$ref": "accessor.schema.json"
},
"minItems": 1,
"gltf_detailedDescription": "An array of accessors. An accessor is a typed view into a bufferView."
},
"animations": {
"type": "array",
"description": "An array of keyframe animations.",
"items": {
"$ref": "animation.schema.json"
},
"minItems": 1
},
"asset": {
"allOf": [ { "$ref": "asset.schema.json" } ],
"description": "Metadata about the glTF asset."
},
"buffers": {
"type": "array",
"description": "An array of buffers.",
"items": {
"$ref": "buffer.schema.json"
},
"minItems": 1,
"gltf_detailedDescription": "An array of buffers. A buffer points to binary geometry, animation, or skins."
},
"bufferViews": {
"type": "array",
"description": "An array of bufferViews.",
"items": {
"$ref": "bufferView.schema.json"
},
"minItems": 1,
"gltf_detailedDescription": "An array of bufferViews. A bufferView is a view into a buffer generally representing a subset of the buffer."
},
"cameras": {
"type": "array",
"description": "An array of cameras.",
"items": {
"$ref": "camera.schema.json"
},
"minItems": 1,
"gltf_detailedDescription": "An array of cameras. A camera defines a projection matrix."
},
"images": {
"type": "array",
"description": "An array of images.",
"items": {
"$ref": "image.schema.json"
},
"minItems": 1,
"gltf_detailedDescription": "An array of images. An image defines data used to create a texture."
},
"materials": {
"type": "array",
"description": "An array of materials.",
"items": {
"$ref": "material.schema.json"
},
"minItems": 1,
"gltf_detailedDescription": "An array of materials. A material defines the appearance of a primitive."
},
"meshes": {
"type": "array",
"description": "An array of meshes.",
"items": {
"$ref": "mesh.schema.json"
},
"minItems": 1,
"gltf_detailedDescription": "An array of meshes. A mesh is a set of primitives to be rendered."
},
"nodes": {
"type": "array",
"description": "An array of nodes.",
"items": {
"$ref": "node.schema.json"
},
"minItems": 1
},
"samplers": {
"type": "array",
"description": "An array of samplers.",
"items": {
"$ref": "sampler.schema.json"
},
"minItems": 1,
"gltf_detailedDescription": "An array of samplers. A sampler contains properties for texture filtering and wrapping modes."
},
"scene": {
"allOf": [ { "$ref": "glTFid.schema.json" } ],
"description": "The index of the default scene."
},
"scenes": {
"type": "array",
"description": "An array of scenes.",
"items": {
"$ref": "scene.schema.json"
},
"minItems": 1
},
"skins": {
"type": "array",
"description": "An array of skins.",
"items": {
"$ref": "skin.schema.json"
},
"minItems": 1,
"gltf_detailedDescription": "An array of skins. A skin is defined by joints and matrices."
},
"textures": {
"type": "array",
"description": "An array of textures.",
"items": {
"$ref": "texture.schema.json"
},
"minItems": 1
},
"extensions": { },
"extras": { }
},
"dependencies": {
"scene": [ "scenes" ]
},
"required": [ "asset" ]
}