Schema definition DirectionalLight
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p627.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
@color   Optional
@direction   Optional
@global   Optional
@intensity   Optional
@on   Optional
-metadata   Optional
-children   Optional
used by Scene / -children > array items [0]+ / Schema / DirectionalLight
-allNodes > array items [0]+ / Schema / DirectionalLight
-child / DirectionalLight
-children > array items [0]+ / Schema / DirectionalLight
source code "DirectionalLight": {
    "type": "object",
    "properties": {
        "@DEF": {
            "type": "string"
        },
        "@USE": {
            "type": "string"
        },
        "IS": {
            "$ref": "#/definitions/IS"
        },
        "@ambientIntensity": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "default": 0
        },
        "@color": {
            "type": "array",
            "minItems": 3,
            "maxItems": 3,
            "items": {
                "type": "number",
                "minimum": 0,
                "maximum": 1,
                "default": 1
            }
        },
        "@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": false
        },
        "@intensity": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "default": 1
        },
        "@on": {
            "type": "boolean",
            "default": true
        },
        "-metadata": {
            "$ref": "#/definitions/-metadata"
        },
        "-children": {
            "$ref": "#/definitions/-commentRoute"
        }
    },
    "additionalProperties": false
}

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

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

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

Property DirectionalLight / @ambientIntensity
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p631.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 DirectionalLight / @color
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p632.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 DirectionalLight / @color > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p633.png
schema details
Default  1
type Numeric
numeric constraints
Minimum  0
Maximum  1
source code {
    "type": "number",
    "minimum": 0,
    "maximum": 1,
    "default": 1
}

Property DirectionalLight / @direction
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p634.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 DirectionalLight / @direction > array items [0] / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p635.png
schema details
Default  0
type Numeric
source code {
    "type": "number",
    "default": 0
}

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

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

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

Property DirectionalLight / @intensity
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p639.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 DirectionalLight / @on
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p640.png
property details
Occurrence  Optional
schema details
Default  true
type Boolean
source code "@on": {
    "type": "boolean",
    "default": true
}

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

Property DirectionalLight / -children
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p642.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