269
edits
Line 178: | Line 178: | ||
|valign=top| | |valign=top| | ||
<pre> | <pre> | ||
<animation> | |||
<type>light</type> | <type>light</type> | ||
<light-type>spot</light-type> | <light-type>spot</light-type> | ||
Line 234: | Line 234: | ||
|- | |- | ||
|<tt>name</tt> | |<tt>name</tt> | ||
| | |Name given to this animation | ||
|- | |- | ||
|<tt>object-name</tt> | |<tt>object-name</tt> | ||
| | |Name of the light volume | ||
|- | |- | ||
|<tt>position</tt> | |<tt>position</tt> | ||
| | |In object space, position of the light | ||
|- | |- | ||
|<tt>direction</tt> | |<tt>direction</tt> | ||
| | |In object space, direction to the center of the spot | ||
|- | |- | ||
|<tt>ambient</tt> | |<tt>ambient</tt> | ||
| | |Ambient color of the light | ||
|- | |- | ||
|<tt>diffuse</tt> | |<tt>diffuse</tt> | ||
| | |Diffuse color of the light | ||
|- | |- | ||
|<tt>specular</tt> | |<tt>specular</tt> | ||
| | |Specular color of the light | ||
|- | |- | ||
|<tt>attenuation</tt> | |<tt>attenuation</tt> | ||
| | |Three element vector. <c> element is the constant factor, <l> element is the linear factor and <q> element is the quadratic factor.<br /> | ||
Attenuation of color at distance d is <tt>1 / ( <c> + <l> * d + <q> * d * d )</tt> | |||
|- | |- | ||
|<tt>exponent</tt> | |<tt>exponent</tt> | ||
| | |Attenuation is multiplied by <tt>pow( dot( lightDir, <direction> ), <exponent> )</tt>, lightDir being vector from light position to point, in camera space. | ||
|- | |- | ||
|<tt>cutoff</tt> | |<tt>cutoff</tt> | ||
| | |point is lit by this source if <tt>dot( lightDir, <direction> ) > <cutoff></tt> , lightDir being vector from light position to point, in camera space. | ||
|- | |- | ||
|<tt>near-m</tt> | |<tt>near-m</tt> |
edits