RedLight.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <dim-factor>
  55. <expression>
  56. <product>
  57. <property>lightpack/nav-lights-intensity</property>
  58. <value>-0.35</value>
  59. <sum>
  60. <product>
  61. <max>
  62. <pow>
  63. <cos><property>/sim/time/sun-angle-rad</property></cos>
  64. <value>0.3</value>
  65. </pow>
  66. <value>0</value>
  67. </max>
  68. <value>1.2</value>
  69. </product>
  70. <value>-1</value>
  71. </sum>
  72. </product>
  73. </expression>
  74. </dim-factor>
  75. <attenuation>
  76. <c>1.0</c>
  77. <l>0.05</l>
  78. <q>0.01</q>
  79. </attenuation>
  80. <spot-exponent>5</spot-exponent>
  81. <spot-cutoff>60</spot-cutoff>
  82. <range-m>50</range-m>
  83. </light>
  84. </PropertyList>