forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
camera.schema.json
28 lines (28 loc) · 1.32 KB
/
camera.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-04/schema",
"title" : "camera",
"type" : "object",
"description" : "A camera's projection. A node can reference a camera ID to apply a transform to place the camera in the scene.",
"allOf" : [ { "$ref" : "glTFChildOfRootProperty.schema.json" } ],
"properties" : {
"name" : {},
"extensions" : {},
"extras" : {},
"orthographic" : {
"allOf" : [ { "$ref" : "camera.orthographic.schema.json" } ],
"description" : "An orthographic camera containing properties to create an orthographic projection matrix."
},
"perspective" : {
"allOf" : [ { "$ref" : "camera.perspective.schema.json" } ],
"description" : "A perspective camera containing properties to create a perspective projection matrix."
},
"type" : {
"type" : "string",
"description" : "Specifies if the camera uses a perspective or orthographic projection.",
"enum" : ["perspective", "orthographic"],
"gltf_detailedDescription" : "Specifies if the camera uses a perspective or orthographic projection. Based on this, either the camera's `perspective` or `orthographic` property will be defined."
}
},
"additionalProperties" : false,
"required": ["type"]
}