LandingLight.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. <!--><model>
  12. <name>LandingLightCone</name>
  13. <path>LightCone/LandingLight-cone.xml</path>
  14. </model><--> <!-- uncomment for fake non-rembrandt cones -->
  15. <!-- COMPOSITOR REPLACEMENT CODE -->
  16. <light>
  17. <name>LandingLightComp</name>
  18. <type>spot</type>
  19. <position>
  20. <x>0.0</x>
  21. <y>0.0</y>
  22. <z>0.0</z>
  23. </position>
  24. <direction>
  25. <x>-1.0</x>
  26. <y>0.0</y>
  27. <z>0.0</z>
  28. </direction>
  29. <ambient>
  30. <r>0.03</r>
  31. <g>0.03</g>
  32. <b>0.03</b>
  33. <a>1.0</a>
  34. </ambient>
  35. <diffuse>
  36. <r>0.80</r>
  37. <g>0.80</g>
  38. <b>0.70</b>
  39. <a>1.0</a>
  40. </diffuse>
  41. <specular>
  42. <r>1.00</r>
  43. <g>0.75</g>
  44. <b>0.75</b>
  45. <a>1.0</a>
  46. </specular>
  47. <dim-factor>
  48. <expression>
  49. <product>
  50. <value>-1</value>
  51. <sum>
  52. <product>
  53. <max>
  54. <pow>
  55. <cos><property>/sim/time/sun-angle-rad</property></cos>
  56. <value>0.3</value>
  57. </pow>
  58. <value>0</value>
  59. </max>
  60. <value>1.0</value>
  61. </product>
  62. <value>-1</value>
  63. </sum>
  64. <property>lightpack/landing-lights-intensity</property>
  65. </product>
  66. </expression>
  67. </dim-factor>
  68. <attenuation>
  69. <c>0.08</c>
  70. <l>0.002</l>
  71. <q>0.0001</q>
  72. </attenuation>
  73. <spot-exponent>5</spot-exponent>
  74. <spot-cutoff>30</spot-cutoff>
  75. <range-m>350</range-m>
  76. </light>
  77. <animation>
  78. <type>select</type>
  79. <object-name>LandingLightComp</object-name>
  80. <object-name>flash</object-name>
  81. <condition>
  82. <equals>
  83. <property>gear/gear/position-norm</property>
  84. <value>1</value>
  85. </equals>
  86. </condition>
  87. </animation>
  88. <!-- -->
  89. <animation>
  90. <type>select</type>
  91. <object-name>LandingLightFlash</object-name>
  92. <object-name>LandingLightRemb</object-name>
  93. <object-name>LandingLightComp</object-name>
  94. <!-- <object-name>LandingLightCone</object-name> uncomment for fake non-rembrandt cones -->
  95. <condition>
  96. <and>
  97. <property>lightpack/landing-lights-intensity</property>
  98. <not><property>sim/crashed</property></not>
  99. </and>
  100. </condition>
  101. </animation>
  102. </PropertyList>