.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the LightOccluder2D.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_LightOccluder2D: LightOccluder2D =============== **Inherits:** :ref:`Node2D` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Occludes light cast by a Light2D, casting shadows. Member Functions ---------------- +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_occluder_light_mask` **(** **)** const | +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`OccluderPolygon2D` | :ref:`get_occluder_polygon` **(** **)** const | +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_occluder_light_mask` **(** :ref:`int` mask **)** | +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_occluder_polygon` **(** :ref:`OccluderPolygon2D` polygon **)** | +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`int` **light_mask** - The LightOccluder2D's light mask. The LightOccluder2D will cast shadows only from Light2D(s) that have the same light mask(s). - :ref:`OccluderPolygon2D` **occluder** - The [OccluderPolygon2D] used to compute the shadow. Description ----------- Occludes light cast by a Light2D, casting shadows. The LightOccluder2D must be provided with an :ref:`OccluderPolygon2D` in order for the shadow to be computed. Member Function Description --------------------------- .. _class_LightOccluder2D_get_occluder_light_mask: - :ref:`int` **get_occluder_light_mask** **(** **)** const Return the light mask of the LightOccluder2D. .. _class_LightOccluder2D_get_occluder_polygon: - :ref:`OccluderPolygon2D` **get_occluder_polygon** **(** **)** const Return the OccluderPolygon2D that defines the LightOccluder2D. .. _class_LightOccluder2D_set_occluder_light_mask: - void **set_occluder_light_mask** **(** :ref:`int` mask **)** Set the LightOccluder2D light mask. The LightOccluder2D will cast shadows only from Light2Ds that belong to the same light mask(s). .. _class_LightOccluder2D_set_occluder_polygon: - void **set_occluder_polygon** **(** :ref:`OccluderPolygon2D` polygon **)** Set the OccluderPolygon2D that defines the LightOccluder2D.