<?xml version="1.0"?>

<PropertyList>
	<!--	Ref. https://www.youtube.com/watch?v=FHyPW8BhGrE
	
		Lights:
			Navigation Lights		3	wing end leading edge, tail						approx. 1:58 min (left)
			Landing Lights			2	white, one per side on the wing leading edge, almost fully outboard	approx. 1:58 min (left)
			Anti-Collision Lights		1	red (front), white (back), fuselage top in front of main gear station	approx. 0:36 min

	-->
	
	<!--	Properties	-->
	<params>
		<anti-collision-light type="string">systems/electrical/outputs/acl-beacon-norm</anti-collision-light>
		<nav-lights type="string">systems/electrical/outputs/navigation-lights-norm</nav-lights>
		<landing-light type="string" n="0">systems/electrical/outputs/landing-light-norm[0]</landing-light>
		<landing-light type="string" n="1">systems/electrical/outputs/landing-light-norm[1]</landing-light>
	</params>
	
	<!--	Light attenuation tuned using http://wiki.ogre3d.org/tiki-index.php?page=-Point+Light+Attenuation	-->
	
	<!--	Landing Lights	-->
	<light>
		<name>landing-light-left</name>
		<type>spot</type>
		<position>
			<x-m> -0.03 </x-m>
			<y-m> -6.7  </y-m>
			<z-m>  0.29 </z-m>
		</position>
		<direction>
			<x>-1.0  </x>
			<y>-0.05  </y>
			<z>-0.013</z>
		</direction>
		<ambient>
			<r>0.9</r>
			<g>0.9</g>
			<b>0.9</b>
			<a>1</a>
		</ambient>
		<diffuse>
			<r>0.9</r>
			<g>0.9</g>
			<b>0.9</b>
			<a>1</a>
		</diffuse>
		<specular>
			<r>0.9</r>
			<g>0.9</g>
			<b>0.9</b>
			<a>1</a>
		</specular>
		<attenuation>
			<c>1.0</c>
			<l>0.014</l>
			<q>0.0007</q>
		</attenuation>
		<spot-exponent>65</spot-exponent>
		<spot-cutoff>20</spot-cutoff>
		<range-m>300</range-m>
		<dim-factor>
			<property alias="/params/landing-light[0]"/>
		</dim-factor>
	</light>
	<light>
		<name>landing-light-right</name>
		<type>spot</type>
		<position>
			<x-m> -0.03 </x-m>
			<y-m>  6.7  </y-m>
			<z-m>  0.29 </z-m>
		</position>
		<direction>
			<x>-1.0  </x>
			<y> 0.05 </y>
			<z>-0.013</z>
		</direction>
		<ambient>
			<r>0.9</r>
			<g>0.9</g>
			<b>0.9</b>
			<a>1</a>
		</ambient>
		<diffuse>
			<r>0.9</r>
			<g>0.9</g>
			<b>0.9</b>
			<a>1</a>
		</diffuse>
		<specular>
			<r>0.9</r>
			<g>0.9</g>
			<b>0.9</b>
			<a>1</a>
		</specular>
		<attenuation>
			<c>1.0</c>
			<l>0.014</l>
			<q>0.0007</q>
		</attenuation>
		<spot-exponent>65</spot-exponent>
		<spot-cutoff>20</spot-cutoff>
		<range-m>300</range-m>
		<dim-factor>
			<property alias="/params/landing-light[1]"/>
		</dim-factor>
	</light>
	<model>
		<path>Lights/white-light.xml</path>
		<name>model-landing-light-left</name>
		<overlay>
			<params>
				<light-property alias="/params/landing-light[0]"/>
			</params>
		</overlay>
		<offsets>
			<x-m> -0.03 </x-m>
			<y-m> -6.7  </y-m>
			<z-m>  0.29 </z-m>
		</offsets>
	</model>
	<model>
		<path>Lights/white-light.xml</path>
		<name>model-landing-light-right</name>
		<overlay>
			<params>
				<light-property alias="/params/landing-light[1]"/>
			</params>
		</overlay>
		<offsets>
			<x-m> -0.03 </x-m>
			<y-m>  6.7  </y-m>
			<z-m>  0.29 </z-m>
		</offsets>
	</model>
	
	<!--	NAVIGATION LIGHTS	-->
	<!--	Red	(left wingtip)
		Green	(right wintip)
		White	(tail)
	-->
	<light>
		<name>red-navlight</name>
		<type>spot</type>
		<position>
			<x-m> 0.4 </x-m>
			<y-m>-7.44</y-m>
			<z-m> 0.39</z-m>
		</position>
		<direction>
			<x> -0.1  </x>
			<y> -1.0  </y>
			<z>  0.0  </z>
		</direction>
		<ambient>
			<r>1.0</r>
			<g>0.1</g>
			<b>0.1</b>
			<a>1</a>
		</ambient>
		<diffuse>
			<r>1.0</r>
			<g>0.1</g>
			<b>0.1</b>
			<a>1</a>
		</diffuse>
		<specular>
			<r>1.0</r>
			<g>0.1</g>
			<b>0.1</b>
			<a>1</a>
		</specular>
		<attenuation>
			<c>1.0</c>
			<l>0.22</l>
			<q>0.20</q>
		</attenuation>
		<spot-exponent>1</spot-exponent>
		<spot-cutoff>89</spot-cutoff>
		<range-m>10</range-m>
		<dim-factor>
			<property alias="/params/nav-lights"/>
		</dim-factor>
	</light>
	<light>
		<name>green-navlight</name>
		<type>spot</type>
		<position>
			<x-m> 0.4 </x-m>
			<y-m> 7.44</y-m>
			<z-m> 0.39</z-m>
		</position>
		<direction>
			<x> -0.1  </x>
			<y>  1.0  </y>
			<z>  0.0  </z>
		</direction>
		<ambient>
			<r>0.1</r>
			<g>1.0</g>
			<b>0.1</b>
			<a>1</a>
		</ambient>
		<diffuse>
			<r>0.1</r>
			<g>1.0</g>
			<b>0.1</b>
			<a>1</a>
		</diffuse>
		<specular>
			<r>0.1</r>
			<g>1.0</g>
			<b>0.1</b>
			<a>1</a>
		</specular>
		<attenuation>
			<c>1.0</c>
			<l>0.22</l>
			<q>0.20</q>
		</attenuation>
		<spot-exponent>1</spot-exponent>
		<spot-cutoff>89</spot-cutoff>
		<range-m>10</range-m>
		<dim-factor>
			<property alias="/params/nav-lights"/>
		</dim-factor>
	</light>
	<light>
		<name>tail-navlight</name>
		<type>spot</type>
		<position>
			<x-m> 7.57</x-m>
			<y-m> 0.0 </y-m>
			<z-m>-0.03</z-m>
		</position>
		<direction>
			<x>  1.0  </x>
			<y>  0.0  </y>
			<z>  0.0  </z>
		</direction>
		<ambient>
			<r>0.5</r>
			<g>0.5</g>
			<b>0.5</b>
			<a>1</a>
		</ambient>
		<diffuse>
			<r>0.5</r>
			<g>0.5</g>
			<b>0.5</b>
			<a>1</a>
		</diffuse>
		<specular>
			<r>0.5</r>
			<g>0.5</g>
			<b>0.5</b>
			<a>1</a>
		</specular>
		<attenuation>
			<c>1.0</c>
			<l>0.22</l>
			<q>0.20</q>
		</attenuation>
		<spot-exponent>1</spot-exponent>
		<spot-cutoff>89</spot-cutoff>
		<range-m>20</range-m>
		<dim-factor>
			<property alias="/params/nav-lights"/>
		</dim-factor>
	</light>
	<model>
		<name>model-red-navlight</name>
		<path>Lights/red-navlight.xml</path>
		<offsets>
			<x-m> 0.4 </x-m>
			<y-m>-7.44</y-m>
			<z-m> 0.39</z-m>
		</offsets>
	</model>
	<model>
		<name>model-green-navlight</name>
		<path>Lights/green-navlight.xml</path>
		<offsets>
			<x-m> 0.4 </x-m>
			<y-m> 7.44</y-m>
			<z-m> 0.39</z-m>
		</offsets>
	</model>
	<model>
		<name>model-tail-navlight</name>
		<path>Lights/tail-navlight.xml</path>
		<offsets>
			<x-m> 7.57</x-m>
			<y-m> 0.0 </y-m>
			<z-m>-0.03</z-m>
		</offsets>
	</model>
	
	<!--	Anti-Collision Lights	-->
	
	<model>
		<name>model-acl</name>
		<path>Lights/strobe.xml</path>
		<overlay>
			<params>
				<light-property alias="/params/anti-collision-light"/>
			</params>
		</overlay>
		<offsets>
			<x-m> 0.9 </x-m>
			<y-m> 0.0 </y-m>
			<z-m> 0.45</z-m>
		</offsets>
	</model>
	
	<animation>
		<type>noshadow</type>
		<object-name>model-landing-light-left</object-name>
		<object-name>model-landing-light-right</object-name>
		<object-name>model-red-navlight</object-name>
		<object-name>model-green-navlight</object-name>
		<object-name>model-tail-navlight</object-name>
		<object-name>model-acl</object-name>
	</animation>
</PropertyList>
