X3D DirectionalLight
Tag Name
DirectionalLight • Example
Tag Description
Light source that moves along rays parallel to a specified 3D vector.
Component
Lighting
Tag Attributes
ambientIntensity
Field Type: SFFloat
Access Type: inputOutput
Default Value: 0
Value Range: 0, 1
Description: Sets the ambient emission from the light.
color
Field Type: SFColor
Access Type: inputOutput
Default Value: 1 1 1
Value Range: 0, 1
Description: Sets the spectral color properties of both the direct and ambient light emission as an RGB value.
global
Field Type: SFBool
Access Type: inputOutput
Default Value: FALSE
Value Range: ...
Description: Sets whether a light is global (illuminate all objects within their volume of lighting influence) or scoped (illuminate objects within their transformation hierarchy).
intensity
Field Type: SFFloat
Access Type: inputOutput
Default Value: 1
Value Range: 0, 1
Description: Sets the brightness of direct emission from the light.
on
Field Type: SFBool
Access Type: inputOutput
Default Value: TRUE
Value Range: ...
Description: Sets whether the source emits light.
direction
Field Type: SFVec3f
Access Type: inputOutput
Default Value: 0 0 -1
Value Range: -∞, ∞
Description: Sets the direction vector of the lights central axis.
metadata
Field Type: SFNode
Access Type: inputOutput
Default Value: NULL
Value Range: X3DMetadataObject
Description: Information about this node.