OmniLight.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="OmniLight" inherits="Light" category="Core" version="3.1">
  3. <brief_description>
  4. Omnidirectional light, such as a light bulb or a candle.
  5. </brief_description>
  6. <description>
  7. An Omnidirectional light is a type of [Light] that emits light in all directions. The light is attenuated by distance and this attenuation can be configured by changing its energy, radius, and attenuation parameters.
  8. </description>
  9. <tutorials>
  10. <link>https://docs.godotengine.org/en/latest/tutorials/3d/lights_and_shadows.html</link>
  11. </tutorials>
  12. <demos>
  13. </demos>
  14. <methods>
  15. </methods>
  16. <members>
  17. <member name="omni_attenuation" type="float" setter="set_param" getter="get_param">
  18. The light's attenuation (drop-off) curve. A number of presets are available in the Inspector.
  19. </member>
  20. <member name="omni_range" type="float" setter="set_param" getter="get_param">
  21. Maximum distance the light affects.
  22. </member>
  23. <member name="omni_shadow_detail" type="int" setter="set_shadow_detail" getter="get_shadow_detail" enum="OmniLight.ShadowDetail">
  24. See [enum ShadowDetail].
  25. </member>
  26. <member name="omni_shadow_mode" type="int" setter="set_shadow_mode" getter="get_shadow_mode" enum="OmniLight.ShadowMode">
  27. See [enum ShadowMode].
  28. </member>
  29. </members>
  30. <constants>
  31. <constant name="SHADOW_DUAL_PARABOLOID" value="0" enum="ShadowMode">
  32. </constant>
  33. <constant name="SHADOW_CUBE" value="1" enum="ShadowMode">
  34. </constant>
  35. <constant name="SHADOW_DETAIL_VERTICAL" value="0" enum="ShadowDetail">
  36. </constant>
  37. <constant name="SHADOW_DETAIL_HORIZONTAL" value="1" enum="ShadowDetail">
  38. </constant>
  39. </constants>
  40. </class>