| 1 | <?xml version="1.0"?> |
| 2 | <PropertyList> |
| 3 | |
| 4 | <path>light.ac</path> |
| 5 | <nopreview/> |
| 6 | |
| 7 | <params> |
| 8 | <power-source>/controls/lighting/nav-lights</power-source> |
| 9 | <name>spotlight</name> |
| 10 | <x-m>0</x-m> |
| 11 | <y-m>0</y-m> |
| 12 | <z-m>0</z-m> |
| 13 | <direction> |
| 14 | <x/> |
| 15 | <y/> |
| 16 | <z/> |
| 17 | </direction> |
| 18 | <ambient> |
| 19 | <r>0.5</r> |
| 20 | <g>0.5</g> |
| 21 | <b>0.4</b> |
| 22 | </ambient> |
| 23 | <specular> |
| 24 | <r>1.0</r> |
| 25 | <g>1.0</g> |
| 26 | <b>1.0</b> |
| 27 | </specular> |
| 28 | <attenuation> |
| 29 | <c>1.0</c> |
| 30 | <l>0.7</l> |
| 31 | <q>1.1</q> |
| 32 | </attenuation> |
| 33 | <inner-angle>0.75</inner-angle> |
| 34 | <outer-angle>0.85</outer-angle> |
| 35 | <zero-angle>0.9</zero-angle> |
| 36 | <outer-gain>0.1</outer-gain> |
| 37 | <spot-cutoff>80</spot-cutoff> |
| 38 | <spot-exponent>0.5</spot-exponent> |
| 39 | <dist-scale>1.5</dist-scale> |
| 40 | <range-m>50</range-m> |
| 41 | </params> |
| 42 | |
| 43 | <animation> |
| 44 | <type>scale</type> |
| 45 | <x-offset>0.175</x-offset> |
| 46 | <y-offset>0.175</y-offset> |
| 47 | <z-offset>0.175</z-offset> |
| 48 | </animation> |
| 49 | |
| 50 | <animation> |
| 51 | <type>scale</type> |
| 52 | <object-name>light</object-name> |
| 53 | <property>sim/current-view/z-offset-m</property> |
| 54 | <x-min>1.0</x-min> |
| 55 | <y-min>1.0</y-min> |
| 56 | <z-min>1.0</z-min> |
| 57 | <x-factor>-0.065</x-factor> |
| 58 | <y-factor>-0.065</y-factor> |
| 59 | <z-factor>-0.065</z-factor> |
| 60 | </animation> |
| 61 | |
| 62 | <animation> |
| 63 | <type>dist-scale</type> |
| 64 | <object-name>light</object-name> |
| 65 | <factor>100</factor> |
| 66 | <interpolation> |
| 67 | <entry> |
| 68 | <ind>0</ind> |
| 69 | <dep alias="/params/dist-scale"/> |
| 70 | </entry> |
| 71 | <entry> |
| 72 | <ind alias="/params/range-m"/> |
| 73 | <dep>1</dep> |
| 74 | </entry> |
| 75 | </interpolation> |
| 76 | </animation> |
| 77 | |
| 78 | <animation> |
| 79 | <type>noshadow</type> |
| 80 | <object-name>light</object-name> |
| 81 | </animation> |
| 82 | |
| 83 | <animation> |
| 84 | <type>select</type> |
| 85 | <object-name>light</object-name> |
| 86 | <condition> |
| 87 | <property alias="/params/power-source"/> |
| 88 | </condition> |
| 89 | </animation> |
| 90 | |
| 91 | <effect> |
| 92 | <name>Effects/spotlight</name> |
| 93 | <object-name>light</object-name> |
| 94 | <inherits-from>Effects/procedural-light</inherits-from> |
| 95 | <parameters> |
| 96 | <texture n="0"> |
| 97 | <type>white</type> |
| 98 | </texture> |
| 99 | <light_color_base_r alias="/params/ambient/r"/> |
| 100 | <light_color_base_g alias="/params/ambient/g"/> |
| 101 | <light_color_base_b alias="/params/ambient/b"/> |
| 102 | <light_color_center_r alias="/params/specular/r"/> |
| 103 | <light_color_center_g alias="/params/specular/g"/> |
| 104 | <light_color_center_b alias="/params/specular/b"/> |
| 105 | <intensity_scale>1.0</intensity_scale> |
| 106 | <pointing_x alias="/params/direction/x"/> |
| 107 | <pointing_y alias="/params/direction/y"/> |
| 108 | <pointing_z alias="/params/direction/z"/> |
| 109 | <is_directional type="bool">true</is_directional> |
| 110 | <is_strobe type="bool">false</is_strobe> |
| 111 | <inner_angle alias="/params/inner-angle"/> |
| 112 | <outer_angle alias="/params/outer-angle"/> |
| 113 | <zero_angle alias="/params/zero-angle"/> |
| 114 | <outer_gain alias="/params/outer-gain"/> |
| 115 | <visibility><use>/environment/ground-visibility-m</use></visibility> |
| 116 | <avisibility><use>/environment/visibility-m</use></avisibility> |
| 117 | <lthickness><use>/environment/ground-haze-thickness-m</use></lthickness> |
| 118 | <terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt> |
| 119 | <eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt> |
| 120 | <terminator><use>/environment/terminator-relative-position-m</use></terminator> |
| 121 | </parameters> |
| 122 | </effect> |
| 123 | |
| 124 | <light> |
| 125 | <name alias="/params/name"/> |
| 126 | <type>spot</type> |
| 127 | <position> |
| 128 | <x alias="/params/x-m"/> |
| 129 | <y alias="/params/y-m"/> |
| 130 | <z alias="/params/z-m"/> |
| 131 | </position> |
| 132 | <direction> |
| 133 | <pointing_x alias="/params/direction/x"/> |
| 134 | <pointing_y alias="/params/direction/y"/> |
| 135 | <pointing_z alias="/params/direction/z"/> |
| 136 | </direction> |
| 137 | <ambient> |
| 138 | <r alias="/params/ambient/r"/> |
| 139 | <g alias="/params/ambient/g"/> |
| 140 | <b alias="/params/ambient/b"/> |
| 141 | <a>1.0</a> |
| 142 | </ambient> |
| 143 | <diffuse> |
| 144 | <r alias="/params/specular/r"/> |
| 145 | <g alias="/params/specular/g"/> |
| 146 | <b alias="/params/specular/b"/> |
| 147 | <a>1.0</a> |
| 148 | </diffuse> |
| 149 | <specular> |
| 150 | <r alias="/params/specular/r"/> |
| 151 | <g alias="/params/specular/g"/> |
| 152 | <b alias="/params/specular/b"/> |
| 153 | <a>1.0</a> |
| 154 | </specular> |
| 155 | <attenuation> |
| 156 | <c alias="/params/attenuation/c"/> |
| 157 | <l alias="/params/attenuation/l"/> |
| 158 | <q alias="/params/attenuation/q"/> |
| 159 | </attenuation> |
| 160 | <spot-cutoff alias="/params/spot-cutoff"/> |
| 161 | <spot-exponent alias="/params/spot-exponent"/> |
| 162 | <range-m alias="/params/range-m"/> |
| 163 | <dim-factor><property alias="/params/power-source"/></dim-factor> |
| 164 | </light> |
| 165 | |
| 166 | </PropertyList> |