overheadlight.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <PropertyList>
  2. <path>overheadlight.ac</path>
  3. <animation>
  4. <type>billboard</type>
  5. <object-name>floodhalo</object-name>
  6. </animation>
  7. <!-- halo on floodlight, visible only during night time -->
  8. <animation>
  9. <type>select</type>
  10. <object-name>floodhalo</object-name>
  11. <condition>
  12. <not>
  13. <equals>
  14. <property>/systems/electrical/outputs/floodlight</property>
  15. <value>0</value>
  16. </equals>
  17. </not>
  18. <equals>
  19. <property>sim/current-view/internal</property>
  20. <value>true</value>
  21. </equals>
  22. <greater-than>
  23. <property>/sim/time/sun-angle-rad</property>
  24. <value>1.6</value>
  25. </greater-than>
  26. </condition>
  27. </animation>
  28. <animation>
  29. <type>material</type>
  30. <object-name>floodhalo</object-name>
  31. <emission>
  32. <red>1</red>
  33. <green>1</green>
  34. <blue>1</blue>
  35. </emission>
  36. <ambient>
  37. <red>0</red>
  38. <green>0</green>
  39. <blue>0</blue>
  40. </ambient>
  41. <specular>
  42. <red>0</red>
  43. <green>0</green>
  44. <blue>0</blue>
  45. </specular>
  46. <diffuse>
  47. <red>0</red>
  48. <green>0</green>
  49. <blue>0</blue>
  50. </diffuse>
  51. <transparency>
  52. <alpha-prop>constants/zero</alpha-prop>
  53. <factor>1</factor>
  54. <offset>0.6</offset>
  55. </transparency>
  56. <shininess>0</shininess>
  57. </animation>
  58. </PropertyList>