| diagram |  | ||||||||||||||||||||||||||||||||||
| location | C:\x3d-code\www.web3d.org\specifications\x3d-3.3-JSONSchema.json | ||||||||||||||||||||||||||||||||||
| type | Object | ||||||||||||||||||||||||||||||||||
| properties | 
 | ||||||||||||||||||||||||||||||||||
| used by | Scene / -children > array items [0]+ / Schema / SpotLight -allNodes > array items [0]+ / Schema / SpotLight -child / SpotLight -children > array items [0]+ / Schema / SpotLight | ||||||||||||||||||||||||||||||||||
| source code | "SpotLight": { "type": "object", "properties": { "@DEF": { "type": "string" }, "@USE": { "type": "string" }, "IS": { "$ref": "#/definitions/IS" }, "@ambientIntensity": { "type": "number", "minimum": 0, "maximum": 1, "default": 0 }, "@attenuation": { "type": "array", "minItems": 3, "maxItems": 3, "items": [ { "type": "number", "minimum": 0, "default": 1 }, { "type": "number", "minimum": 0, "default": 0 }, { "type": "number", "minimum": 0, "default": 0 } ], "additionalItems": false }, "@beamWidth": { "type": "number", "exclusiveMinimum": 0, "maximum": 1.5708, "default": 0.7854 }, "@color": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "type": "number", "minimum": 0, "maximum": 1, "default": 1 } }, "@cutOffAngle": { "type": "number", "exclusiveMinimum": 0, "maximum": 1.5708, "default": 1.570796 }, "@direction": { "type": "array", "minItems": 3, "maxItems": 3, "items": [ { "type": "number", "default": 0 }, { "type": "number", "default": 0 }, { "type": "number", "default": -1 } ], "additionalItems": false }, "@global": { "type": "boolean", "default": true }, "@intensity": { "type": "number", "minimum": 0, "maximum": 1, "default": 1 }, "@location": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "type": "number", "default": 0 } }, "@on": { "type": "boolean", "default": true }, "@radius": { "type": "number", "minimum": 0, "default": 100 }, "-metadata": { "$ref": "#/definitions/-metadata" }, "-children": { "$ref": "#/definitions/-commentRoute" } }, "additionalProperties": false } | 
| diagram |  | ||
| property details | 
 | ||
| type | String | ||
| source code | "@DEF": { "type": "string" } | 
| diagram |  | ||
| property details | 
 | ||
| type | String | ||
| source code | "@USE": { "type": "string" } | 
| diagram |  | ||
| property details | 
 | ||
| reference | IS | ||
| source code | "IS": { "$ref": "#/definitions/IS" } | 
| diagram |  | ||||
| property details | 
 | ||||
| schema details | 
 | ||||
| type | Numeric | ||||
| numeric constraints | 
 | ||||
| source code | "@ambientIntensity": { "type": "number", "minimum": 0, "maximum": 1, "default": 0 } | 
| diagram |  | ||||||
| property details | 
 | ||||||
| type | Array | ||||||
| array constraints | 
 | ||||||
| array items | 
 | ||||||
| source code | "@attenuation": { "type": "array", "minItems": 3, "maxItems": 3, "items": [ { "type": "number", "minimum": 0, "default": 1 }, { "type": "number", "minimum": 0, "default": 0 }, { "type": "number", "minimum": 0, "default": 0 } ], "additionalItems": false } | 
| diagram |  | ||
| schema details | 
 | ||
| type | Numeric | ||
| numeric constraints | 
 | ||
| source code | { "type": "number", "minimum": 0, "default": 1 } | 
| diagram |  | ||
| schema details | 
 | ||
| type | Numeric | ||
| numeric constraints | 
 | ||
| source code | { "type": "number", "minimum": 0, "default": 0 } | 
| diagram |  | ||
| schema details | 
 | ||
| type | Numeric | ||
| numeric constraints | 
 | ||
| source code | { "type": "number", "minimum": 0, "default": 0 } | 
| diagram |  | ||||||
| property details | 
 | ||||||
| schema details | 
 | ||||||
| type | Numeric | ||||||
| numeric constraints | 
 | ||||||
| source code | "@beamWidth": { "type": "number", "exclusiveMinimum": 0, "maximum": 1.5708, "default": 0.7854 } | 
| diagram |  | ||||
| property details | 
 | ||||
| type | Array | ||||
| array constraints | 
 | ||||
| array items | 
 | ||||
| source code | "@color": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "type": "number", "minimum": 0, "maximum": 1, "default": 1 } } | 
| diagram |  | ||||
| schema details | 
 | ||||
| type | Numeric | ||||
| numeric constraints | 
 | ||||
| source code | { "type": "number", "minimum": 0, "maximum": 1, "default": 1 } | 
| diagram |  | ||||||
| property details | 
 | ||||||
| schema details | 
 | ||||||
| type | Numeric | ||||||
| numeric constraints | 
 | ||||||
| source code | "@cutOffAngle": { "type": "number", "exclusiveMinimum": 0, "maximum": 1.5708, "default": 1.570796 } | 
| diagram |  | ||||||
| property details | 
 | ||||||
| type | Array | ||||||
| array constraints | 
 | ||||||
| array items | 
 | ||||||
| source code | "@direction": { "type": "array", "minItems": 3, "maxItems": 3, "items": [ { "type": "number", "default": 0 }, { "type": "number", "default": 0 }, { "type": "number", "default": -1 } ], "additionalItems": false } | 
| diagram |  | ||
| schema details | 
 | ||
| type | Numeric | ||
| source code | { "type": "number", "default": 0 } | 
| diagram |  | ||
| schema details | 
 | ||
| type | Numeric | ||
| source code | { "type": "number", "default": 0 } | 
| diagram |  | ||
| schema details | 
 | ||
| type | Numeric | ||
| source code | { "type": "number", "default": -1 } | 
| diagram |  | ||
| property details | 
 | ||
| schema details | 
 | ||
| type | Boolean | ||
| source code | "@global": { "type": "boolean", "default": true } | 
| diagram |  | ||||
| property details | 
 | ||||
| schema details | 
 | ||||
| type | Numeric | ||||
| numeric constraints | 
 | ||||
| source code | "@intensity": { "type": "number", "minimum": 0, "maximum": 1, "default": 1 } | 
| diagram |  | ||||
| property details | 
 | ||||
| type | Array | ||||
| array constraints | 
 | ||||
| array items | 
 | ||||
| source code | "@location": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "type": "number", "default": 0 } } | 
| diagram |  | ||
| schema details | 
 | ||
| type | Numeric | ||
| source code | { "type": "number", "default": 0 } | 
| diagram |  | ||
| property details | 
 | ||
| schema details | 
 | ||
| type | Boolean | ||
| source code | "@on": { "type": "boolean", "default": true } | 
| diagram |  | ||
| property details | 
 | ||
| schema details | 
 | ||
| type | Numeric | ||
| numeric constraints | 
 | ||
| source code | "@radius": { "type": "number", "minimum": 0, "default": 100 } | 
| diagram |  | ||
| property details | 
 | ||
| reference | -metadata | ||
| source code | "-metadata": { "$ref": "#/definitions/-metadata" } | 
| diagram |  | ||
| property details | 
 | ||
| reference | -commentRoute | ||
| source code | "-children": { "$ref": "#/definitions/-commentRoute" } |