<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>
	<!--	The Diamond HK36 (TTC) is equipped with the following external lights:
	
	Navigation (Positition) Lights	2	wing tips
	Strobe (Anti-Collision) Lights	2	tail
	Landing Light			1	cowling, below spinner
	-->
	<params>
		<landing-light type="string">systems/electrical/outputs/landing-light-norm</landing-light>
		<position-light type="string">systems/electrical/outputs/navigation-lights-norm</position-light>
		<anti-collision-light type="string">systems/electrical/outputs/anti-collision-light-norm</anti-collision-light>
	</params>
	
	
	<!--	Landing Light	-->
	<model>
		<name>ll_std</name>
		<path>Lights/standard/LandingLight.xml</path>
		<overlay>
			<params>
				<light-property alias="/params/landing-light"/>
			</params>
		</overlay>
		<offsets>
			<x-m>-1.64</x-m>
			<y-m> 0.0 </y-m>
			<z-m>-0.23</z-m>
		</offsets>
	</model>
	<model>
		<name>ll_als</name>
		<path>Lights/ALS/landinglight.xml</path>
		<overlay>
			<params>
				<light-property alias="/params/landing-light"/>
			</params>
		</overlay>
		<offsets>
			<x-m>-1.64</x-m>
			<y-m> 0.0 </y-m>
			<z-m>-0.23</z-m>
		</offsets>
	</model>
	<light>
		<name>landinglight</name>
		<type>spot</type>
		<position>
			<x-m>-1.64</x-m>
			<y-m> 0.0 </y-m>
			<z-m>-0.23</z-m>
		</position>
		<direction>
			<x>-1.0</x>
			<y> 0.0</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.0001</l>
			<q>0.0005</q>
		</attenuation>
		<spot-exponent>25</spot-exponent>
		<spot-cutoff>30</spot-cutoff>
		<range-m>100</range-m>
		<dim-factor>
			<property alias="/params/landing-light"/>
		</dim-factor>
	</light>
	
	<!--	Navigation Lights	-->
	<model>
		<name>rednav_std</name>
		<path>Lights/standard/RedLight.xml</path>
		<overlay>
			<params>
				<light-property alias="/params/position-light"/>
			</params>
		</overlay>
		<offsets>
			<x-m> 0.4  </x-m>
			<y-m>-8.03 </y-m>
			<z-m> 0.183</z-m>
		</offsets>
	</model>
	<model>
		<name>rednav_als</name>
		<path>Lights/ALS/red-navlight.xml</path>
		<overlay>
			<params>
				<light-property alias="/params/position-light"/>
			</params>
		</overlay>
		<offsets>
			<x-m> 0.4  </x-m>
			<y-m>-8.03 </y-m>
			<z-m> 0.183</z-m>
		</offsets>
	</model>
	<light>
		<name>red-navlight</name>
		<type>spot</type>
		<position>
			<x-m> 0.4  </x-m>
			<y-m>-8.03 </y-m>
			<z-m> 0.183</z-m>
		</position>
		<direction>
			<x>-0.25</x>
			<y>-0.9 </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>1.5</l>
			<q>1.8</q>
		</attenuation>
		<spot-exponent>2</spot-exponent>
		<spot-cutoff>70</spot-cutoff>
		<range-m>5</range-m>
		<dim-factor>
			<property alias="/params/position-light"/>
		</dim-factor>
	</light>
	<model>
		<name>greennav_std</name>
		<path>Lights/standard/GreenLight.xml</path>
		<overlay>
			<params>
				<light-property alias="/params/position-light"/>
			</params>
		</overlay>
		<offsets>
			<x-m> 0.4  </x-m>
			<y-m> 8.03 </y-m>
			<z-m> 0.183</z-m>
		</offsets>
	</model>
	<model>
		<name>greennav_als</name>
		<path>Lights/ALS/green-navlight.xml</path>
		<overlay>
			<params>
				<light-property alias="/params/position-light"/>
			</params>
		</overlay>
		<offsets>
			<x-m> 0.4  </x-m>
			<y-m> 8.03 </y-m>
			<z-m> 0.183</z-m>
		</offsets>
	</model>
	<light>
		<name>green-navlight</name>
		<type>spot</type>
		<position>
			<x-m> 0.4  </x-m>
			<y-m> 8.03 </y-m>
			<z-m> 0.183</z-m>
		</position>
		<direction>
			<x>-0.25</x>
			<y> 0.9 </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>1.5</l>
			<q>1.8</q>
		</attenuation>
		<spot-exponent>2</spot-exponent>
		<spot-cutoff>70</spot-cutoff>
		<range-m>5</range-m>
		<dim-factor>
			<property alias="/params/position-light"/>
		</dim-factor>
	</light>
	
	<!--	Anti-Collision Lights	-->
	<!--	The anti-collision light is combining two colors: light to the front is passing through a red glass while rearward light stays white	-->
	<model>
		<name>acl_std</name>
		<path>Lights/standard/StrobeLight.xml</path>
		<overlay>
			<params>
				<light-property alias="/params/anti-collision-light"/>
			</params>
		</overlay>
		<offsets>
			<x-m> 5.04</x-m>
			<y-m> 0.0 </y-m>
			<z-m> 1.36</z-m>
		</offsets>
	</model>
	<model>
		<name>acl_als</name>
		<path>Lights/ALS/strobe.xml</path>
		<overlay>
			<params>
				<light-property alias="/params/anti-collision-light"/>
			</params>
		</overlay>
		<offsets>
			<x-m> 5.04</x-m>
			<y-m> 0.0 </y-m>
			<z-m> 1.36</z-m>
		</offsets>
	</model>
	<light>
		<name>anti-collision-light-white</name>
		<type>spot</type>
		<position>
			<x-m> 5.04</x-m>
			<y-m> 0.0 </y-m>
			<z-m> 1.36</z-m>
		</position>
		<direction>
			<x>  1.0 </x>
			<y>  0.0 </y>
			<z>  0.1 </z>
		</direction>
		<ambient>
			<r>1.0</r>
			<g>1.0</g>
			<b>1.0</b>
			<a>1</a>
		</ambient>
		<diffuse>
			<r>1.0</r>
			<g>1.0</g>
			<b>1.0</b>
			<a>1</a>
		</diffuse>
		<specular>
			<r>1.0</r>
			<g>1.0</g>
			<b>1.0</b>
			<a>1</a>
		</specular>
		<attenuation>
			<c>1.0</c>
			<l>2.0</l>
			<q>4.0</q>
		</attenuation>
		<spot-exponent>0.5</spot-exponent>
		<spot-cutoff>89</spot-cutoff>
		<range-m>30</range-m>
		<dim-factor>
			<property alias="/params/anti-collision-light"/>
		</dim-factor>
	</light>
	<light>
		<name>anti-collision-light-red</name>
		<type>spot</type>
		<position>
			<x-m> 5.04</x-m>
			<y-m> 0.0 </y-m>
			<z-m> 1.36</z-m>
		</position>
		<direction>
			<x> -1.0 </x>
			<y>  0.0 </y>
			<z>  0.1 </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>2.0</l>
			<q>4.0</q>
		</attenuation>
		<spot-exponent>0.5</spot-exponent>
		<spot-cutoff>89</spot-cutoff>
		<range-m>30</range-m>
		<dim-factor>
			<property alias="/params/anti-collision-light"/>
		</dim-factor>
	</light>
	<!--Select Lights ALS/Standard-->
	<animation>
		<type>select</type>
		<object-name>ll_als</object-name>
		<object-name>rednav_als</object-name>
		<object-name>greennav_als</object-name>
		<object-name>acl_als</object-name>
		<nopreview/>
		<condition>
			<property>/sim/rendering/shaders/skydome</property>
		</condition>
	</animation>
	<animation>
		<type>select</type>
		<object-name>ll_std</object-name>
		<object-name>rednav_std</object-name>
		<object-name>greennav_std</object-name>
		<object-name>acl_std</object-name>
		<nopreview/>
		<condition>
			<not>
				<property>/sim/rendering/shaders/skydome</property>
			</not>
		</condition>
	</animation>
	<!--	Noshadow Animation	-->
	<animation>
		<type>noshadow</type>
		<object-name>ll_als</object-name>
		<object-name>rednav_als</object-name>
		<object-name>greennav_als</object-name>
		<object-name>acl_als</object-name>
		<object-name>ll_std</object-name>
		<object-name>rednav_std</object-name>
		<object-name>greennav_std</object-name>
		<object-name>acl_std</object-name>
	</animation>
</PropertyList>
