Strobe-flare.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <PropertyList>
  3. <path>WhiteLight-flat.ac</path>
  4. <animation>
  5. <type>blend</type>
  6. <expression>
  7. <sum>
  8. <product>
  9. <product>
  10. <property>lightpack/strobe-state/state</property>
  11. <value>-1</value>
  12. </product>
  13. <sum>
  14. <max>
  15. <product>
  16. <pow>
  17. <cos><property>/sim/time/sun-angle-rad</property></cos>
  18. <value>0.3</value>
  19. </pow>
  20. <value>0.5</value> <!-- by tuning this, you specify how much to fade during full daylight -->
  21. </product>
  22. <value>0</value>
  23. </max>
  24. <value>-1</value>
  25. </sum>
  26. <value>-1</value>
  27. </product>
  28. <value>1</value>
  29. </sum>
  30. </expression>
  31. </animation>
  32. <effect>
  33. <inherits-from>Effects/model-transparent</inherits-from>
  34. <condition>
  35. <property>/sim/rendering/rembrandt/enabled</property>
  36. </condition>
  37. <object-name>Light</object-name>
  38. </effect>
  39. <animation>
  40. <type>noshadow</type>
  41. <object-name>Light</object-name>
  42. </animation>
  43. <animation>
  44. <type>alpha-test</type>
  45. <alpha-factor>0.01</alpha-factor>
  46. </animation>
  47. <animation>
  48. <type>billboard</type>
  49. <object-name>Light</object-name>
  50. <spherical type="bool">true</spherical>
  51. </animation>
  52. <animation>
  53. <type>material</type>
  54. <object-name>Light</object-name>
  55. <emission>
  56. <red> 1.0 </red>
  57. <green> 1.0 </green>
  58. <blue> 1.0 </blue>
  59. </emission>
  60. </animation>
  61. <animation>
  62. <type>dist-scale</type>
  63. <object-name>Light</object-name>
  64. <interpolation>
  65. <entry><ind> 0 </ind><dep> 0.50 </dep></entry>
  66. <entry><ind> 20 </ind><dep> 1.00 </dep></entry>
  67. <entry><ind> 1500 </ind><dep> 10.00 </dep></entry>
  68. </interpolation>
  69. <center> <!-- prevent the light from moving forward, obscuring eg. landing lights (the model is offset from center) -->
  70. <x-m>0</x-m>
  71. <y-m>-0.24</y-m>
  72. <z-m>0</z-m>
  73. </center>
  74. </animation>
  75. </PropertyList>