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

<PropertyList>

    <path>kalmar_berga_vattentorn.ac</path>

    <effect>
        <inherits-from>/Effects/model-combined</inherits-from>

        <parameters>
            <lightmap-enabled type="int">1</lightmap-enabled>
            <lightmap-factor>
                <use>/environment/lightmap-factor</use>
            </lightmap-factor>
            <texture n="3">
                <image>kalmar_berga_vattentorn2.png</image>
            </texture>
        </parameters>

        <object-name>building</object-name>
    </effect>

    <effect>
        <inherits-from>/Effects/model-combined</inherits-from>

        <parameters>
            <lightmap-enabled type="int">1</lightmap-enabled>
            <lightmap-factor>
                <use>/environment/lightmap-factor</use>
            </lightmap-factor>
            <texture n="3">
                <image>kalmar_berga_vattentorn2.png</image>
            </texture>

            <reflection-enabled type="int"> 1 </reflection-enabled>
            <reflect-map-enabled type="int"> 1 </reflect-map-enabled>
            <reflection-correction type="float"> -0.15 </reflection-correction>
            <reflection-dynamic type="int">1</reflection-dynamic>
            <texture n="4">
                <image>kalmar_berga_vattentorn3.png</image>
            </texture>
        </parameters>

        <object-name>windows</object-name>
        <object-name>elevator</object-name>
    </effect>

    <effect>
        <inherits-from>/Effects/model-combined</inherits-from>
        <parameters>
            <transparent>true</transparent>
        </parameters>
        <object-name>mast</object-name>
    </effect>

    <animation>
        <type>noshadow</type>
        <object-name>light</object-name>
        <object-name>no_light</object-name>
    </animation>

    <animation>
        <type>alpha-test</type>
        <alpha-factor>0.01</alpha-factor>
    </animation>

    <animation>
        <name>StrobesOn</name>
        <object-name>light</object-name>
    </animation>

    <animation>
        <name>StrobesOff</name>
        <object-name>no_light</object-name>
    </animation>

    <animation>
        <type>select</type>
        <object-name>StrobesOn</object-name>
        <object-name>StrobesOff</object-name>
        <condition>
            <greater-than>
                <property>/sim/time/sun-angle-rad</property>
                <value>1.57</value>
            </greater-than>
        </condition>
    </animation>

    <animation>
        <type>billboard</type>
        <object-name>light</object-name>
        <spherical type="bool">false</spherical>
    </animation>

    <animation>
        <type>billboard</type>
        <object-name>no_light</object-name>
        <spherical type="bool">false</spherical>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>light</object-name>
        <offset-m>55</offset-m>
        <axis>
            <x>0</x>
            <y>0</y>
            <z>1</z>
        </axis>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>light</object-name>
        <offset-m>1</offset-m>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z></z>
        </axis>
    </animation>

    <animation>
        <type>dist-scale</type>
        <object-name>light</object-name>
        <interpolation>
            <entry>
                <ind>0</ind>
                <dep>0.1</dep>
            </entry>
            <entry>
                <ind>500</ind>
                <dep>0.3</dep>
            </entry>
            <entry>
                <ind>1000</ind>
                <dep>0.5</dep>
            </entry>
            <entry>
                <ind>16000</ind>
                <dep>3</dep>
            </entry>
        </interpolation>
    </animation>

    <animation>
        <type>timed</type>
        <object-name>StrobesOn</object-name>
        <object-name>StrobesOff</object-name>
        <use-personality type="bool">true</use-personality>
        <branch-duration-sec>
            <random>
                <min>0.9</min>
                <max>1.1</max>
            </random>
        </branch-duration-sec>
        <branch-duration-sec>
            <random>
                <min>0.9</min>
                <max>1.1</max>
            </random>
        </branch-duration-sec>
    </animation>

</PropertyList>
