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

<PropertyList>

<!--Sequence des occultations(12,2,1)-->
<nasal>
 <load>
   var pharelight=aircraft.light.new("sim/light/flash",[5.0, 0.5, 0.5, 0.5, 5.0, 0.5],"sim/ai/enabled");
 </load>
</nasal>

 <path>cordouan.ac</path> 

 <effect>
  <inherits-from>Effects/model-transparent</inherits-from>
  <object-name>lanterne-blanc1</object-name>
  <object-name>lanterne-blanc2</object-name>
  <object-name>lanterne-rouge</object-name>
  <object-name>lanterne-vert</object-name>
  <object-name>GreenHalo</object-name>
  <object-name>RedHalo</object-name>
  <object-name>WhiteHalo-1</object-name>
  <object-name>WhiteHalo-2</object-name>
 </effect>

 <animation>
  <type>select</type>
  <object-name>lanterne-blanc1</object-name>
  <object-name>lanterne-blanc2</object-name>
  <object-name>lanterne-rouge</object-name>
  <object-name>lanterne-vert</object-name>  
  <condition>
  <and>
   <greater-than>
    <property>/sim/time/sun-angle-rad</property>
    <value>1.35</value>
   </greater-than>
   <property>sim/light/flash/state/</property>
  </and>
  </condition>
 </animation>

 <animation>
  <type>select</type>  
  <object-name>GreenHalo</object-name>
  <object-name>RedHalo</object-name>
  <object-name>WhiteHalo-1</object-name>
  <object-name>WhiteHalo-2</object-name>
  <condition>
  <and>
   <greater-than>
    <property>/sim/time/sun-angle-rad</property>
    <value>1.35</value>
   </greater-than>
   <property>sim/light/flash/state/</property>
<!--
   <not>
    <property>sim/rendering/rembrandt/enabled</property>
   </not>
-->
  </and>
  </condition>
 </animation>
  
 <animation>
    <type>material</type>
    <object-name>lanterne-blanc1</object-name>
    <object-name>lanterne-blanc2</object-name>
    <object-name>lanterne-rouge</object-name>
    <object-name>lanterne-vert</object-name>

    <object-name>GreenHalo</object-name>
    <object-name>RedHalo</object-name>
    <object-name>WhiteHalo-1</object-name>
    <object-name>WhiteHalo-2</object-name>
    <emission>
      <red>   1 </red>
      <green> 1 </green>
      <blue>  1 </blue>
      <factor>5</factor>
    </emission>
  </animation>

 <animation>
  <type>dist-scale</type>
  <object-name>lanterne-blanc1</object-name>
  <object-name>lanterne-blanc2</object-name>
  <object-name>lanterne-rouge</object-name>
  <object-name>lanterne-vert</object-name>
<!--
  <object-name>GreenHalo</object-name>
  <object-name>RedHalo</object-name>
  <object-name>WhiteHalo-1</object-name>
  <object-name>WhiteHalo-2</object-name>-->
  <interpolation>
   <entry><ind>0.1 </ind> <dep>1</dep></entry>
   
   <entry><ind>8000</ind> <dep>5</dep></entry>
   
  </interpolation>
  <center>
   <x-m>0</x-m>
   <y-m>0</y-m>
   <z-m>60</z-m>
  </center>
 </animation>

 <animation>
  <type>range</type>
  <object-name>lanterne-blanc1</object-name>
  <object-name>lanterne-blanc2</object-name>
  <object-name>lanterne-rouge</object-name>
  <object-name>lanterne-vert</object-name>
  <object-name>lanterne-vert</object-name>
  <object-name>GreenHalo</object-name>
  <object-name>RedHalo</object-name>
  <object-name>WhiteHalo-1</object-name>
  <object-name>WhiteHalo-2</object-name> 
  <min-m>10</min-m>
  <max-m>41000</max-m>
 </animation>

<!--rembrandt-->
<!--VERT-->
  <animation>
  <type>light</type>
  <light-type>spot</light-type>
  <name>LightSource_1</name>
  <object-name>light-volume-g</object-name>
  <position>
   <x> 0</x>
   <y>-0</y>
   <z> 0</z>
  </position>
  <direction>
   <x>1</x>
   <y>-1</y>
   <z>0</z>
  </direction>
  <ambient>
   <r>0.01</r>
   <g>0.1</g>
   <b>0.01</b>
   <a>1.0</a>
  </ambient>
  <diffuse>
   <r>0.01</r>
   <g>0.1</g>
   <b>0.01</b>
   <a>1.0</a>
  </diffuse>
  <specular>
   <r>0.01</r>
   <g>0.1</g>
   <b>0.01</b>
   <a>1.0</a>
  </specular>
  <attenuation>
   <c>0.5</c>
   <l>0.0</l>
   <q>0.0000005</q>
  </attenuation>
  <exponent>3</exponent>
  <cutoff>250</cutoff>
  <near-m>50</near-m>
  <far-m>12000</far-m>
 </animation>

 <animation>
    <type>select</type>
    <object-name>light-volume-g</object-name>
    <condition>
     <and>
      <greater-than>
        <property>/sim/time/sun-angle-rad</property>
        <value>1.35</value>
      </greater-than>
      <property>sim/light/flash/state/</property>
     </and>        
    </condition>
  </animation>

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

 <!--ROUGE-->

  <animation>
  <type>light</type>
  <light-type>spot</light-type>
  <name>LightSource_2</name>
  <object-name>light-volume-r</object-name>
  <position>
   <x> 0</x>
   <y>-0</y>
   <z> 0</z>
  </position>
  <direction>
   <x>-1</x>
   <y>1</y>
   <z>0</z>
  </direction>
  <ambient>
   <r>0.2</r>
   <g>0.01</g>
   <b>0.01</b>
   <a>1.0</a>
  </ambient>
  <diffuse>
   <r>0.2</r>
   <g>0.01</g>
   <b>0.01</b>
   <a>1.0</a>
  </diffuse>
  <specular>
   <r>0.2</r>
   <g>0.01</g>
   <b>0.01</b>
   <a>1.0</a>
  </specular>
  <attenuation>
   <c>0.5</c>
   <l>0.0</l>
   <q>0.0000005</q>
  </attenuation>
  <exponent>3</exponent>
  <cutoff>250</cutoff>
  <near-m>50</near-m>
  <far-m>12000</far-m>
 </animation>


  <animation>
    <type>select</type>
    <object-name>light-volume-r</object-name>
    <condition>
     <and>
      <greater-than>
        <property>/sim/time/sun-angle-rad</property>
        <value>1.35</value>
      </greater-than>
      <property>sim/light/flash/state/</property>
     </and>        
    </condition>
  </animation>

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

 <!--BLANC-1-->

  <animation>
  <type>light</type>
  <light-type>spot</light-type>
  <name>LightSource_3</name>
  <object-name>light-volume-w1</object-name>
  <position>
   <x> 0</x>
   <y>-0</y>
   <z> 0</z>
  </position>
  <direction>
   <x>0.5</x>
   <y>0.5</y>
   <z>0</z>
  </direction>
  <ambient>
   <r>0.1</r>
   <g>0.1</g>
   <b>0.1</b>
   <a>1.0</a>
  </ambient>
  <diffuse>
   <r>0.1</r>
   <g>0.1</g>
   <b>0.1</b>
   <a>1.0</a>
  </diffuse>
  <specular>
   <r>0.1</r>
   <g>0.1</g>
   <b>0.1</b>
   <a>1.0</a>
  </specular>
  <attenuation>
   <c>0.5</c>
   <l>0.0</l>
   <q>0.0000005</q>
  </attenuation>
  <exponent>3</exponent>
  <cutoff>250</cutoff>
  <near-m>50</near-m>
  <far-m>12000</far-m>
 </animation>


  <animation>
    <type>select</type>
    <object-name>light-volume-w1</object-name>
    <condition>
     <and>
      <greater-than>
        <property>/sim/time/sun-angle-rad</property>
        <value>1.35</value>
      </greater-than>
      <property>sim/light/flash/state/</property>
     </and>        
    </condition>
  </animation>

  <animation>
    <type>scale</type>
    <object-name>light-volume-w1</object-name>
    <x-offset> 5.0 </x-offset>
    <y-offset> 5.0 </y-offset>
    <z-offset> 5.0 </z-offset>
  </animation>
  
 <!--BLANC-2-->

  <animation>
  <type>light</type>
  <light-type>spot</light-type>
  <name>LightSource_4</name>
  <object-name>light-volume-w2</object-name>
  <position>
   <x> 0</x>
   <y>-0</y>
   <z> 0</z>
  </position>
  <direction>
   <x>-0.5</x>
   <y>-0.5</y>
   <z>0</z>
  </direction>
  <ambient>
   <r>0.1</r>
   <g>0.1</g>
   <b>0.1</b>
   <a>1.0</a>
  </ambient>
  <diffuse>
   <r>0.1</r>
   <g>0.1</g>
   <b>0.1</b>
   <a>1.0</a>
  </diffuse>
  <specular>
   <r>0.1</r>
   <g>0.1</g>
   <b>0.1</b>
   <a>1.0</a>
  </specular>
  <attenuation>
   <c>0.5</c>
   <l>0.0</l>
   <q>0.0000005</q>
  </attenuation>
  <exponent>3</exponent>
  <cutoff>250</cutoff>
  <near-m>50</near-m>
  <far-m>12000</far-m>
 </animation>


  <animation>
    <type>select</type>
    <object-name>light-volume-w2</object-name>
    <condition>
     <and>
      <greater-than>
        <property>/sim/time/sun-angle-rad</property>
        <value>1.35</value>
      </greater-than>
      <property>sim/light/flash/state/</property>
     </and>        
    </condition>
  </animation>

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

 </PropertyList>
