RedLight.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <PropertyList>
  3. <model>
  4. <name>RedLightFlare</name>
  5. <path>Flares/RedLight-flare.xml</path>
  6. </model>
  7. <model>
  8. <name>RedLightRemb</name>
  9. <path>Rembrandt/RedLight-remb.xml</path>
  10. </model>
  11. <animation>
  12. <type>select</type>
  13. <object-name>RedLightFlare</object-name>
  14. <object-name>RedLightRemb</object-name>
  15. <condition>
  16. <and>
  17. <property>lightpack/nav-lights-intensity</property>
  18. <not><property>sim/crashed</property></not>
  19. </and>
  20. </condition>
  21. </animation>
  22. <!-- Coompositor lights -->
  23. <light>
  24. <name>red1</name>
  25. <type>spot</type>
  26. <position>
  27. <x-m>0.0</x-m>
  28. <y-m>0.0</y-m>
  29. <z-m>0</z-m>
  30. </position>
  31. <direction>
  32. <x>0.0</x>
  33. <y>0.0</y>
  34. <z>1.0</z>
  35. </direction>
  36. <ambient>
  37. <r>1</r>
  38. <g>0.03</g>
  39. <b>0.03</b>
  40. <a>1</a>
  41. </ambient>
  42. <diffuse>
  43. <r>0.95</r>
  44. <g>0.9</g>
  45. <b>0.9</b>
  46. <a>1</a>
  47. </diffuse>
  48. <specular>
  49. <r>0.95</r>
  50. <g>0.9</g>
  51. <b>0.9</b>
  52. <a>1</a>
  53. </specular>
  54. <color>
  55. <r>1.00</r>
  56. <g>0.0</g>
  57. <b>0.0</b>
  58. <a>1.0</a>
  59. </color>
  60. <dim-factor>
  61. <expression>
  62. <product>
  63. <property>lightpack/nav-lights-intensity</property>
  64. <value>-0.35</value>
  65. <sum>
  66. <product>
  67. <max>
  68. <pow>
  69. <cos><property>/sim/time/sun-angle-rad</property></cos>
  70. <value>0.3</value>
  71. </pow>
  72. <value>0</value>
  73. </max>
  74. <value>1.2</value>
  75. </product>
  76. <value>-1</value>
  77. </sum>
  78. </product>
  79. </expression>
  80. </dim-factor>
  81. <attenuation>
  82. <c>1.0</c>
  83. <l>0.05</l>
  84. <q>0.01</q>
  85. </attenuation>
  86. <spot-exponent>5</spot-exponent>
  87. <spot-cutoff>60</spot-cutoff>
  88. <range-m>50</range-m>
  89. <intensity>500</intensity>
  90. </light>
  91. </PropertyList>