Schema definition SpotLight
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2966.png
location C:\x3d-code\www.web3d.org\specifications\x3d-3.3-JSONSchema.json
type Object
properties
Name   Occurrence
@DEF   Optional
@USE   Optional
IS   Optional
@ambientIntensity   Optional
@attenuation   Optional
@beamWidth   Optional
@color   Optional
@cutOffAngle   Optional
@direction   Optional
@global   Optional
@intensity   Optional
@location   Optional
@on   Optional
@radius   Optional
-metadata   Optional
-children   Optional
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
}

Property SpotLight / @DEF
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2967.png
property details
Occurrence  Optional
type String
source code "@DEF": {
    "type": "string"
}

Property SpotLight / @USE
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2968.png
property details
Occurrence  Optional
type String
source code "@USE": {
    "type": "string"
}

Property SpotLight / IS
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2969.png
property details
Occurrence  Optional
reference IS
source code "IS": {
    "$ref": "#/definitions/IS"
}

Property SpotLight / @ambientIntensity
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2970.png
property details
Occurrence  Optional
schema details
Default  0
type Numeric
numeric constraints
Minimum  0
Maximum  1
source code "@ambientIntensity": {
    "type": "number",
    "minimum": 0,
    "maximum": 1,
    "default": 0
}

Property SpotLight / @attenuation
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2971.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  3
Max Items  3
array items
[0]  Schema
[1]  Schema
[2]  Schema
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
}

Array item SpotLight / @attenuation > array items [0] / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2972.png
schema details
Default  1
type Numeric
numeric constraints
Minimum  0
source code {
    "type": "number",
    "minimum": 0,
    "default": 1
}

Array item SpotLight / @attenuation > array items [1] / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2973.png
schema details
Default  0
type Numeric
numeric constraints
Minimum  0
source code {
    "type": "number",
    "minimum": 0,
    "default": 0
}

Array item SpotLight / @attenuation > array items [2] / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2974.png
schema details
Default  0
type Numeric
numeric constraints
Minimum  0
source code {
    "type": "number",
    "minimum": 0,
    "default": 0
}

Property SpotLight / @beamWidth
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2975.png
property details
Occurrence  Optional
schema details
Default  0.7854
type Numeric
numeric constraints
Minimum  0
Excl. Min  true
Maximum  1.5708
source code "@beamWidth": {
    "type": "number",
    "exclusiveMinimum": 0,
    "maximum": 1.5708,
    "default": 0.7854
}

Property SpotLight / @color
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2976.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  3
Max Items  3
array items
[0 - 2]  Schema
source code "@color": {
    "type": "array",
    "minItems": 3,
    "maxItems": 3,
    "items": {
        "type": "number",
        "minimum": 0,
        "maximum": 1,
        "default": 1
    }
}

Array item wildcard SpotLight / @color > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2977.png
schema details
Default  1
type Numeric
numeric constraints
Minimum  0
Maximum  1
source code {
    "type": "number",
    "minimum": 0,
    "maximum": 1,
    "default": 1
}

Property SpotLight / @cutOffAngle
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2978.png
property details
Occurrence  Optional
schema details
Default  1.570796
type Numeric
numeric constraints
Minimum  0
Excl. Min  true
Maximum  1.5708
source code "@cutOffAngle": {
    "type": "number",
    "exclusiveMinimum": 0,
    "maximum": 1.5708,
    "default": 1.570796
}

Property SpotLight / @direction
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2979.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  3
Max Items  3
array items
[0]  Schema
[1]  Schema
[2]  Schema
source code "@direction": {
    "type": "array",
    "minItems": 3,
    "maxItems": 3,
    "items": [
        {
            "type": "number",
            "default": 0
        },
        {
            "type": "number",
            "default": 0
        },
        {
            "type": "number",
            "default": -1
        }
    ],
    "additionalItems": false
}

Array item SpotLight / @direction > array items [0] / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2980.png
schema details
Default  0
type Numeric
source code {
    "type": "number",
    "default": 0
}

Array item SpotLight / @direction > array items [1] / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2981.png
schema details
Default  0
type Numeric
source code {
    "type": "number",
    "default": 0
}

Array item SpotLight / @direction > array items [2] / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2982.png
schema details
Default  -1
type Numeric
source code {
    "type": "number",
    "default": -1
}

Property SpotLight / @global
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2983.png
property details
Occurrence  Optional
schema details
Default  true
type Boolean
source code "@global": {
    "type": "boolean",
    "default": true
}

Property SpotLight / @intensity
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2984.png
property details
Occurrence  Optional
schema details
Default  1
type Numeric
numeric constraints
Minimum  0
Maximum  1
source code "@intensity": {
    "type": "number",
    "minimum": 0,
    "maximum": 1,
    "default": 1
}

Property SpotLight / @location
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2985.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  3
Max Items  3
array items
[0 - 2]  Schema
source code "@location": {
    "type": "array",
    "minItems": 3,
    "maxItems": 3,
    "items": {
        "type": "number",
        "default": 0
    }
}

Array item wildcard SpotLight / @location > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2986.png
schema details
Default  0
type Numeric
source code {
    "type": "number",
    "default": 0
}

Property SpotLight / @on
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2987.png
property details
Occurrence  Optional
schema details
Default  true
type Boolean
source code "@on": {
    "type": "boolean",
    "default": true
}

Property SpotLight / @radius
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2988.png
property details
Occurrence  Optional
schema details
Default  100
type Numeric
numeric constraints
Minimum  0
source code "@radius": {
    "type": "number",
    "minimum": 0,
    "default": 100
}

Property SpotLight / -metadata
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2989.png
property details
Occurrence  Optional
reference -metadata
source code "-metadata": {
    "$ref": "#/definitions/-metadata"
}

Property SpotLight / -children
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p2990.png
property details
Occurrence  Optional
reference -commentRoute
source code "-children": {
    "$ref": "#/definitions/-commentRoute"
}


JSON Schema documentation generated by XMLSpy JSON Schema Editor http://www.altova.com/xmlspy/json-schema-editor.html