The light element describes a light source.
A unique name for the light.
The light type: point, directional, spot.
When true, the light will cast shadows.
A position and orientation in the global coordinate frame for the light.
Diffuse light color
Specular light color
Light attenuation
Range of the light
The linear attenuation factor: 1 means attenuate evenly over the distance.
The constant attenuation factor: 1.0 means never attenuate, 0.0 is complete attenutation.
The quadratic attenuation factor: adds a curvature to the attenuation.
Direction of the light, only applicable for spot and directional lights.
Spot light parameters
Angle covered by the bright inner cone
Angle covered by the outer cone
The rate of falloff between the inner and outer cones. 1.0 means a linear falloff, less means slower falloff, higher means faster falloff.