2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2019-07-05 11:32:53 +02:00
<class name= "LightOccluder2D" inherits= "Node2D" category= "Core" version= "3.1.2" >
2017-09-12 22:42:36 +02:00
<brief_description >
Occludes light cast by a Light2D, casting shadows.
</brief_description>
<description >
Occludes light cast by a Light2D, casting shadows. The LightOccluder2D must be provided with an [OccluderPolygon2D] in order for the shadow to be computed.
</description>
<tutorials >
2019-06-01 11:39:12 +02:00
<link > http://docs.godotengine.org/en/3.1/tutorials/2d/2d_lights_and_shadows.html</link>
2017-09-12 22:42:36 +02:00
</tutorials>
<methods >
</methods>
<members >
2017-09-13 08:49:40 +02:00
<member name= "light_mask" type= "int" setter= "set_occluder_light_mask" getter= "get_occluder_light_mask" >
2017-09-12 22:42:36 +02:00
The LightOccluder2D's light mask. The LightOccluder2D will cast shadows only from Light2D(s) that have the same light mask(s).
</member>
2017-09-13 08:49:40 +02:00
<member name= "occluder" type= "OccluderPolygon2D" setter= "set_occluder_polygon" getter= "get_occluder_polygon" >
2017-09-12 22:42:36 +02:00
The [OccluderPolygon2D] used to compute the shadow.
</member>
</members>
<constants >
</constants>
</class>