Schema definition Material
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1628.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
@diffuseColor   Optional
@emissiveColor   Optional
@shininess   Optional
@specularColor   Optional
@transparency   Optional
-metadata   Optional
-children   Optional
used by -allNodes > array items [0]+ / Schema / Material
-material / Material
source code "Material": {
    "type": "object",
    "properties": {
        "@DEF": {
            "type": "string"
        },
        "@USE": {
            "type": "string"
        },
        "IS": {
            "$ref": "#/definitions/IS"
        },
        "@ambientIntensity": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "default": 0.2
        },
        "@diffuseColor": {
            "type": "array",
            "minItems": 3,
            "maxItems": 3,
            "items": {
                "type": "number",
                "minimum": 0,
                "maximum": 1,
                "default": 0.8
            }
        },
        "@emissiveColor": {
            "type": "array",
            "minItems": 3,
            "maxItems": 3,
            "items": {
                "type": "number",
                "minimum": 0,
                "maximum": 1,
                "default": 0
            }
        },
        "@shininess": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "default": 0.2
        },
        "@specularColor": {
            "type": "array",
            "minItems": 3,
            "maxItems": 3,
            "items": {
                "type": "number",
                "minimum": 0,
                "maximum": 1,
                "default": 0
            }
        },
        "@transparency": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "default": 0
        },
        "-metadata": {
            "$ref": "#/definitions/-metadata"
        },
        "-children": {
            "$ref": "#/definitions/-commentRoute"
        }
    },
    "additionalProperties": false
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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