X3D SpotLight
Tag Name
SpotLight • Example
Tag Description
Emits light from a specified point along a specified direction and constrained within a solid angle.
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.
attenuation
Field Type: SFVec3f
Access Type: inputOutput
Default Value: 1 0 0
Value Range: 0, 1
Description: The amount of illumination that falls off over distance.
beamWidth
Field Type: SFFloat
Access Type: inputOutput
Default Value: Π/4
Value Range: 0, Π/2
Description: Sets the inner angle of light which displays light at full intensity.
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.
cutOffAngle
Field Type: SFFloat
Access Type: inputOutput
Default Value: Π/2
Value Range: 0, Π/2
Description: Sets the outer bounds of the lights angle. Light is not emitted beyond this cutoff.
direction
Field Type: SFVec3f
Access Type: inputOutput
Default Value: 0 0 -1
Value Range: -∞, ∞
Description: Sets the direction vector of the lights central axis.
global
Field Type: SFBool
Access Type: inputOutput
Default Value: TRUE
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.
location
Field Type: SFVec3f
Access Type: inputOutput
Default Value: 0 0 0
Value Range: -∞, ∞
Description: The origin of the light source and the apex of the cutOffAngle.
on
Field Type: SFBool
Access Type: inputOutput
Default Value: TRUE
Value Range: ...
Description: Sets whether the source emits light.
radius
Field Type: SFFloat
Access Type: inputOutput
Default Value: 100
Value Range: 0, ∞
Description: Sets the radial extent of the solid angle and the maximum distance from location that may be illuminated by the light source.
metadata
Field Type: SFNode
Access Type: inputOutput
Default Value: NULL
Value Range: X3DMetadataObject
Description: Information about this node.