<?xml version="1.0"?>

<PropertyList>

  <path>Light-flash.ac</path>

  <animation>
    <object-name>flash</object-name>
    <attach>world</attach>
  <placer>
    <type>point</type>
  </placer>
  </animation>

  <effect>
   <inherits-from>Effects/model-transparent</inherits-from>
   <condition>
    <property>/sim/rendering/rembrandt/enabled</property>
   </condition>
   <object-name>flash</object-name> 
  </effect>

  <animation>
    <type>noshadow</type>
    <object-name>flash</object-name>
  </animation>

  <animation>
    <type>flash</type>
    <object-name>flash</object-name>
    <center>
      <x-m> 0.000 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.000 </z-m>
    </center>
    <axis>
      <x> -1.0 </x>
      <y>  0.0 </y>
      <z> -0.1 </z><!-- make sure to keep this equivalent to the Rembrandt light cone pitch setting! set here tan(pitch) -->
    </axis>
    <power>15</power>
    <factor>0.8</factor>
    <offset>0</offset>
    <two-sides type="bool">false</two-sides>
    <min>0.0</min>
    <max>1</max>
  </animation>
  
  <animation>
     <type>scale</type>
     <object-name>flash</object-name>
     <property>lightpack/landing-lights-intensity</property>
  </animation>
  

  <animation>
    <type>material</type>
    <object-name>flash</object-name>
    <emission>
      <red>   1.0 </red>
      <green> 1.0 </green>
      <blue>  0.75 </blue>
    </emission>
  </animation>

  <animation>
    <type>dist-scale</type>
    <object-name>flash</object-name>
    <interpolation>
      <entry>
        <ind>0</ind><dep>2</dep>
      </entry>
      <entry>
        <ind>20</ind><dep>2</dep>
      </entry>
      <entry>
        <ind>1500</ind><dep>4</dep>
      </entry>
    </interpolation>
    <center> <!-- prevent light model from obscuring the flare on larger distances -->
      <x-m>0.3</x-m>
      <y-m>0</y-m>
      <z-m>0</z-m>
    </center>
  </animation>

</PropertyList>
