.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_OmniLight: OmniLight ========= **Inherits:** :ref:`Light` **<** :ref:`VisualInstance` **<** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- OmniDirectional Light, such as a light bulb or a candle. Member Functions ---------------- +------------------------+--------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_shadow_detail` **(** **)** const | +------------------------+--------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_shadow_mode` **(** **)** const | +------------------------+--------------------------------------------------------------------------------------------------------+ | void | :ref:`set_shadow_detail` **(** :ref:`int` detail **)** | +------------------------+--------------------------------------------------------------------------------------------------------+ | void | :ref:`set_shadow_mode` **(** :ref:`int` mode **)** | +------------------------+--------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`float` **omni_attenuation** - :ref:`float` **omni_range** - :ref:`int` **omni_shadow_detail** - :ref:`int` **omni_shadow_mode** Description ----------- An OmniDirectional light is a type of :ref:`Light` node that emits lights in all directions. The light is attenuated through the distance and this attenuation can be configured by changing the energy, radius and attenuation parameters of :ref:`Light`. Member Function Description --------------------------- .. _class_OmniLight_get_shadow_detail: - :ref:`int` **get_shadow_detail** **(** **)** const .. _class_OmniLight_get_shadow_mode: - :ref:`int` **get_shadow_mode** **(** **)** const .. _class_OmniLight_set_shadow_detail: - void **set_shadow_detail** **(** :ref:`int` detail **)** .. _class_OmniLight_set_shadow_mode: - void **set_shadow_mode** **(** :ref:`int` mode **)**