Customizing Lighting Setups > <lightscenes> Element > <light> Element
  
<light> Element
The <light> element is a child of the <lightscene> element. The <light> element defines the type, color, and direction for one light in a lighting setup.
<light> Syntax
<light name="Light Name" type="[direct|spot|point]" relative="[view|scene]">
<color />
<position />
<direction />
<angle>
<exponent>
</light>
<light> Attributes
name
(String) Specifies the name of the light.
type
(String) Specifies the light type as direct (default), spot, or point.
relative
(String) Specifies whether the light is relative to the view (default) or the scene.
* 
For orthographic projections, if you set the <light> attribute type="spot" or type="point", you should only set the attribute relative="scene". Setting relative="view" can produce unpredictable results.
<light> Child Elements
<color />
Specifies the color intensity of the ambient, diffuse, and specular light settings. (See <color> Element .)
<position />
For spot and point lights only—Specifies the XYZ coordinates for the location of the point or spot light source, assuming it not infinitely far from the scene. (See <position> Element .)
<direction />
For direct and spot lights only—Specifies the XYZ vector for the direction of the direct or spot light source. (See <direction> Element .)
<angle>
For spot lights only—Specifies the cutoff angle for the spot light source. (See <angle> Element .)
<exponent>
For spot lights only—Specifies the exponent for the spot light source. (See <exponent> Element .)
<light> Example
This example shows the light element for a spot light source that has a position in the scene.
<light name="back" type="spot" relative="scene">
<color ambient="#0A0A0A" diffuse="#FFB669" specular="#E0E0E0"/>
<position x="71.00" y="66.00" z="24.00"/>
<direction x="-60.00" y="60.00" z="-20.00"/>
<angle>10.00</angle>
<exponent>128</exponent>
</light>