searchlight.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <PropertyList>
  3. <model>
  4. <name>SearchLightFlash</name>
  5. <path>Flares/SearchLight-flash.xml</path>
  6. </model>
  7. <model>
  8. <name>SearchLightRemb</name>
  9. <path>Rembrandt/SearchLight-remb.xml</path>
  10. </model>
  11. <!-- <model>
  12. <name>SearchLightCone</name>
  13. <path>Aircraft/Bell_412/Models/Lights/LightCone/SearchLight-cone.xml</path>
  14. </model>uncomment for fake non-rembrandt cones -->
  15. <!-- COMPOSITOR REPLACEMENT CODE -->
  16. <light>
  17. <name>SearchLightComp</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/search-lights-intensity</property>
  65. </product>
  66. </expression>
  67. </dim-factor>
  68. <attenuation>
  69. <c>0.0001</c>
  70. <l>0.00002</l>
  71. <q>0.0001</q>
  72. </attenuation>
  73. <spot-exponent>1</spot-exponent>
  74. <spot-cutoff>5</spot-cutoff>
  75. <range-m>600</range-m>
  76. </light>
  77. <animation>
  78. <type>select</type>
  79. <object-name>SearchLightFlash</object-name>
  80. <object-name>SearchLightRemb</object-name>
  81. <object-name>SearchLightComp</object-name>
  82. <!-- <object-name>SearchLightCone</object-name> uncomment for fake non-rembrandt cones -->
  83. <condition>
  84. <and>
  85. <property>sim/multiplay/generic/int[8]</property>
  86. <value>1</value>
  87. <!--<property>lightpack/landing-lights-intensity</property> -->
  88. <not><property>sim/crashed</property></not>
  89. </and>
  90. </condition>
  91. </animation>
  92. </PropertyList>