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

<!-- 
     ************************************************************************
     Tecnam P92 Echo
     January 2012 created by Clément de l'Hamaide : http://equipe-flightgear.forumactif.com/u115
     ************************************************************************
-->

<PropertyList>

  <path>light.ac</path>
  <nopreview/>

  <animation>
    <type>light</type>
    <light-type>spot</light-type>
    <object-name>light</object-name>
    <position>
      <x> 0 </x>
      <y> 0 </y>
      <z> 0 </z>
    </position>
    <direction>
      <x>  0.0 </x>
      <y> -1.0 </y>
      <z> -0.4 </z>
    </direction>
    <ambient>
      <r>  0.8 </r>
      <g>  0.0 </g>
      <b>  0.0 </b>
      <a>  1.0 </a>
    </ambient>
    <diffuse>
      <r>  1.0 </r>
      <g>  0.0 </g>
      <b>  0.0 </b>
      <a>  1.0 </a>
    </diffuse>
    <specular>
      <r>  1.0 </r>
      <g>  0.5 </g>
      <b>  0.5 </b>
      <a>  1.0 </a>
    </specular>
    <dim-factor>
      <property>dimming/property</property>
      <!-- optional begin -->
      <factor>0.04</factor>
      <offset>0</offset>
      <min>0</min>
      <max>10</max>
      <!-- optional end -->
    </dim-factor>
    <attenuation>
      <c>  0.8 </c>
      <l>  0.2 </l>
      <q>  2.0 </q>
    </attenuation>
    <exponent>  1.0   </exponent>
    <cutoff>   50.0   </cutoff>
    <near-m>    0.0   </near-m>
    <far-m>     8.0 </far-m>
  </animation>

  <animation>
    <type>select</type>
    <object-name>light</object-name>
    <condition>
      <greater-than>
        <property>sim/multiplay/generic/float[4]</property>
        <value>9</value>
      </greater-than>
    </condition>
  </animation>

  <model>
    <path>NavLightLPlate.xml</path>
  </model>

<!-- If you need to change scale of the light source, use and adapt : -->

  <animation>
    <type>scale</type>
    <object-name>light</object-name>
    <x-offset> 5.0 </x-offset>
    <y-offset> 5.0 </y-offset>
    <z-offset> 5.0 </z-offset>
  </animation>


</PropertyList>
