WhiteLight-flare.xml 2.2 KB

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