forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlightSpot.schema.json
46 lines (46 loc) · 1.45 KB
/
lightSpot.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
{
"$schema" : "http://json-schema.org/draft-03/schema",
"title" : "light/spot",
"type" : "object",
"extends" : { "$ref" : "glTFProperty.schema.json" },
"properties" : {
"color" : {
"type" : "array",
"description" : "RGB color of the light source. Each element is floating-point between 0.0 and 1.0. Element 0 corresponds to R, 1 to G, and 2 to B.",
"items" : {
"type": "number",
"minimum" : 0.0,
"maximum" : 1.0
},
"minItems" : 3,
"maxItems" : 3,
"default" : [1.0, 1.0, 1.0]
},
"constantAttenuation" : {
"type" : "number",
"description" : "Constant attenuation factor.",
"default" : 1.0
},
"fallOffAngle" : {
"type" : "number",
"description" : "Fall off angle.",
"default" : 3.14159265
},
"fallOffExponent" : {
"type" : "number",
"description" : "Fall off exponent.",
"default" : 0.0
},
"linearAttenuation" : {
"type" : "number",
"description" : "Linear attenuation factor.",
"default" : 0.0
},
"quadraticAttenuation" : {
"type" : "number",
"description" : "Quadratic attenuation factor.",
"default" : 0.0
}
},
"additionalProperties" : false
}