1
0
Fork 0
fgdata/Aircraft/Generic/pointlight.xml

163 lines
4 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<PropertyList>
<path>light.ac</path>
<nopreview/>
<params>
<power-source>/controls/lighting/nav-lights</power-source>
<name>pointlight</name>
<x-m>0</x-m>
<y-m>0</y-m>
<z-m>0</z-m>
<direction>
<x/>
<y/>
<z/>
</direction>
<ambient>
<r>0.5</r>
<g>0.5</g>
<b>0.4</b>
</ambient>
<specular>
<r>1.0</r>
<g>1.0</g>
<b>1.0</b>
</specular>
<attenuation>
<c>1.0</c>
<l>0.7</l>
<q>1.1</q>
</attenuation>
<inner-angle>0.75</inner-angle>
<outer-angle>0.85</outer-angle>
<zero-angle>0.9</zero-angle>
<outer-gain>0.1</outer-gain>
<dist-scale>1.5</dist-scale>
<range-m>50</range-m>
</params>
<animation>
<type>scale</type>
<x-offset>0.175</x-offset>
<y-offset>0.175</y-offset>
<z-offset>0.175</z-offset>
</animation>
<animation>
<type>scale</type>
<object-name>light</object-name>
<property>sim/current-view/z-offset-m</property>
<x-min>1.0</x-min>
<y-min>1.0</y-min>
<z-min>1.0</z-min>
<x-factor>-0.065</x-factor>
<y-factor>-0.065</y-factor>
<z-factor>-0.065</z-factor>
</animation>
<animation>
<type>dist-scale</type>
<object-name>light</object-name>
<factor>100</factor>
<interpolation>
<entry>
<ind>0</ind>
<dep alias="/params/dist-scale"/>
</entry>
<entry>
<ind alias="/params/range-m"/>
<dep>1</dep>
</entry>
</interpolation>
</animation>
<animation>
<type>noshadow</type>
<object-name>light</object-name>
</animation>
<animation>
<type>select</type>
<object-name>light</object-name>
<condition>
<property alias="/params/power-source"/>
</condition>
</animation>
<effect>
<name>Effects/pointlight</name>
<object-name>light</object-name>
<inherits-from>Effects/procedural-light</inherits-from>
<parameters>
<texture n="0">
<type>white</type>
</texture>
<light_color_base_r alias="/params/ambient/r"/>
<light_color_base_g alias="/params/ambient/g"/>
<light_color_base_b alias="/params/ambient/b"/>
<light_color_center_r alias="/params/specular/r"/>
<light_color_center_g alias="/params/specular/g"/>
<light_color_center_b alias="/params/specular/b"/>
<intensity_scale>1.0</intensity_scale>
<pointing_x alias="/params/direction/x"/>
<pointing_y alias="/params/direction/y"/>
<pointing_z alias="/params/direction/z"/>
<is_directional type="bool">false</is_directional>
<is_strobe type="bool">false</is_strobe>
<inner_angle alias="/params/inner-angle"/>
<outer_angle alias="/params/outer-angle"/>
<zero_angle alias="/params/zero-angle"/>
<outer_gain alias="/params/outer-gain"/>
<visibility><use>/environment/ground-visibility-m</use></visibility>
<avisibility><use>/environment/visibility-m</use></avisibility>
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
</parameters>
</effect>
<light>
<name alias="/params/name"/>
<type>point</type>
<position>
<x alias="/params/x-m"/>
<y alias="/params/y-m"/>
<z alias="/params/z-m"/>
</position>
<direction>
<pointing_x alias="/params/direction/x"/>
<pointing_y alias="/params/direction/y"/>
<pointing_z alias="/params/direction/z"/>
</direction>
<ambient>
<r alias="/params/ambient/r"/>
<g alias="/params/ambient/g"/>
<b alias="/params/ambient/b"/>
<a>1.0</a>
</ambient>
<diffuse>
<r alias="/params/specular/r"/>
<g alias="/params/specular/g"/>
<b alias="/params/specular/b"/>
<a>1.0</a>
</diffuse>
<specular>
<r alias="/params/specular/r"/>
<g alias="/params/specular/g"/>
<b alias="/params/specular/b"/>
<a>1.0</a>
</specular>
<attenuation>
<c alias="/params/attenuation/c"/>
<l alias="/params/attenuation/l"/>
<q alias="/params/attenuation/q"/>
</attenuation>
<range-m alias="/params/range-m"/>
<dim-factor><property alias="/params/power-source"/></dim-factor>
</light>
</PropertyList>