forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcamera.schema.json
24 lines (24 loc) · 984 Bytes
/
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
{
"$schema" : "http://json-schema.org/draft-03/schema",
"title" : "camera",
"type" : "object",
"description" : "A camera's projection.",
"extends" : { "$ref" : "glTFChildOfRootProperty.schema.json" },
"properties" : {
"orthographic" : {
"extends" : { "$ref" : "cameraOrthographic.schema.json" },
"description" : "An orthographic camera containing properties to create an orthographic projection matrix."
},
"perspective" : {
"extends" : { "$ref" : "cameraPerspective.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"],
"required" : true
}
},
"additionalProperties" : false
}