forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
camera.schema.json
39 lines (39 loc) · 1.53 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
29
30
31
32
33
34
35
36
37
38
39
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Camera",
"type": "object",
"description": "A camera's projection. A node can reference a camera to apply a transform to place the camera in the scene.",
"allOf": [ { "$ref": "glTFChildOfRootProperty.schema.json" } ],
"properties": {
"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": {
"description": "Specifies if the camera uses a perspective or orthographic projection.",
"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.",
"anyOf": [
{
"enum": [ "perspective" ]
},
{
"enum": [ "orthographic" ]
},
{
"type": "string"
}
]
},
"name": { },
"extensions": { },
"extras": { }
},
"required": [ "type" ],
"not": {
"required": [ "perspective", "orthographic" ]
}
}