LandingLight.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <PropertyList>
  3. <model>
  4. <name>LandingLightFlash</name>
  5. <path>Flares/LandingLight-flash.xml</path>
  6. </model>
  7. <model>
  8. <name>LandingLightRemb</name>
  9. <path>Rembrandt/LandingLight-remb.xml</path>
  10. </model>
  11. <!-- COMPOSITOR REPLACEMENT CODE -->
  12. <light>
  13. <name>LandingLightComp</name>
  14. <type>spot</type>
  15. <position>
  16. <x>0.0</x>
  17. <y>0.0</y>
  18. <z>0.0</z>
  19. </position>
  20. <direction>
  21. <x>-1.0</x>
  22. <y>0.0</y>
  23. <z>0.0</z>
  24. </direction>
  25. <ambient>
  26. <r>0.03</r>
  27. <g>0.03</g>
  28. <b>0.03</b>
  29. <a>1.0</a>
  30. </ambient>
  31. <diffuse>
  32. <r>0.80</r>
  33. <g>0.80</g>
  34. <b>0.70</b>
  35. <a>1.0</a>
  36. </diffuse>
  37. <specular>
  38. <r>1.00</r>
  39. <g>0.75</g>
  40. <b>0.75</b>
  41. <a>1.0</a>
  42. </specular>
  43. <dim-factor>
  44. <expression>
  45. <product>
  46. <value>-1</value>
  47. <sum>
  48. <product>
  49. <max>
  50. <pow>
  51. <cos><property>/sim/time/sun-angle-rad</property></cos>
  52. <value>0.3</value>
  53. </pow>
  54. <value>0</value>
  55. </max>
  56. <value>1.0</value>
  57. </product>
  58. <value>-1</value>
  59. </sum>
  60. <property>lightpack/landing-lights-intensity</property>
  61. </product>
  62. </expression>
  63. </dim-factor>
  64. <attenuation>
  65. <c>0.08</c>
  66. <l>0.002</l>
  67. <q>0.0001</q>
  68. </attenuation>
  69. <spot-exponent>12</spot-exponent>
  70. <spot-cutoff>24.8</spot-cutoff>
  71. <range-m>350</range-m>
  72. <intensity>9555</intensity>
  73. </light>
  74. <animation>
  75. <type>select</type>
  76. <object-name>LandingLightFlash</object-name>
  77. <object-name>LandingLightRemb</object-name>
  78. <object-name>LandingLightComp</object-name>
  79. <condition>
  80. <and>
  81. <property>lightpack/landing-lights-intensity</property>
  82. <not><property>sim/crashed</property></not>
  83. <or>
  84. <and>
  85. <equals>
  86. <property>gear/gear[0]/position-norm</property>
  87. <value> 1 </value>
  88. </equals>
  89. </and>
  90. </or>
  91. </and>
  92. </condition>
  93. </animation>
  94. </PropertyList>