forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glTF.schema.json
208 lines (208 loc) · 9.06 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
{
"$schema" : "http://json-schema.org/draft-03/schema",
"title" : "glTF",
"type" : "object",
"description" : "The root object for a glTF asset.",
"extends" : { "$ref" : "glTFProperty.schema.json" },
"properties" : {
"extensionsUsed" : {
"type" : "array",
"description" : "Names of extensions used somewhere in this asset.",
"items" : {
"type" : "string"
},
"uniqueItems" : true,
"default" : [],
"gltf_webgl" : "`getSupportedExtensions()` and `getExtension()`"
},
"accessors" : {
"type" : "object",
"description" : "A dictionary object of accessors.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "accessor.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of accessors. The name of each accessor is an ID in the global glTF namespace that is used to reference the accessor. An accessor is a typed view into a bufferView."
},
"animations" : {
"type" : "object",
"description" : "A dictionary object of keyframe animations.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "animation.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of keyframe animations. The name of each animation is an ID in the global glTF namespace that is used to reference the animation."
},
"asset" : {
"extends" : { "$ref" : "asset.schema.json" },
"description" : "Metadata about the glTF asset.",
"default" : {}
},
"buffers" : {
"type" : "object",
"description" : "A dictionary object of buffers.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "buffer.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of buffers. The name of each buffer is an ID in the global glTF namespace that is used to reference the buffer. A buffer points to binary geometry, animation, or skins."
},
"bufferViews" : {
"type" : "object",
"description" : "A dictionary object of bufferViews.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "bufferView.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of bufferViews. The name of each bufferView is an ID in the global glTF namespace that is used to reference the bufferView. A bufferView is a view into a buffer generally representing a subset of the buffer."
},
"cameras" : {
"type" : "object",
"description" : "A dictionary object of cameras.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "camera.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of cameras. The name of each camera is an ID in the global glTF namespace that is used to reference the camera. A camera defines a projection matrix."
},
"images" : {
"type" : "object",
"description" : "A dictionary object of images.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "image.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of images. The name of each image is an ID in the global glTF namespace that is used to reference the image. An image defines data used to create a texture."
},
"materials" : {
"type" : "object",
"description" : "A dictionary object of materials.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "material.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of materials. The name of each material is an ID in the global glTF namespace that is used to reference the material. A material defines the appearance of a primitive."
},
"meshes" : {
"type" : "object",
"description" : "A dictionary object of meshes.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "mesh.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of meshes. The name of each mesh is an ID in the global glTF namespace that is used to reference the mesh. A mesh is a set of primitives to be rendered."
},
"nodes" : {
"type" : "object",
"description" : "A dictionary object of nodes.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "node.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of nodes in the node hierarchy. The name of each node is an ID in the global glTF namespace that is used to reference the node."
},
"programs" : {
"type" : "object",
"description" : "A dictionary object of programs.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "program.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of shader programs. The name of each program is an ID in the global glTF namespace that is used to reference the program."
},
"samplers" : {
"type" : "object",
"description" : "A dictionary object of samplers.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "sampler.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of samplers. The name of each sampler is an ID in the global glTF namespace that is used to reference the sampler. A sampler contains properties for texture filtering and wrapping modes."
},
"scene" : {
"extends" : { "$ref" : "glTFid.schema.json" },
"description" : "The ID of the default scene."
},
"scenes" : {
"type" : "object",
"description" : "A dictionary object of scenes.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "scene.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of scenes. The name of each scene is an ID in the global glTF namespace that is used to reference the scene."
},
"shaders" : {
"type" : "object",
"description" : "A dictionary object of shaders.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "shader.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of shaders. The name of each shader is an ID in the global glTF namespace that is used to reference the shader."
},
"skins" : {
"type" : "object",
"description" : "A dictionary object of skins.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "skin.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of skins. The name of each skin is an ID in the global glTF namespace that is used to reference the skin. A skin is defined by joints and matrices."
},
"techniques" : {
"type" : "object",
"description" : "A dictionary object of techniques.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "technique.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of techniques. The name of each technique is an ID in the global glTF namespace that is used to reference the technique. A technique is a template for a material appearance."
},
"textures" : {
"type" : "object",
"description" : "A dictionary object of textures.",
"properties" : {
},
"additionalProperties" : {
"$ref" : "texture.schema.json"
},
"default" : {},
"gltf_detailedDescription" : "A dictionary object of textures. The name of each texture is an ID in the global glTF namespace that is used to reference the texture."
}
},
"dependencies" : {
"scene" : "scenes"
},
"additionalProperties" : false
}