Defines a 2D polygon for LightOccluder2D.
Editor facility that helps you draw a 2D polygon used as resource for LightOccluder2D.
true, closes the polygon. A closed OccluderPolygon2D occludes the light coming from any direction. An opened OccluderPolygon2D occludes the light only at its outline’s direction. Default value:
Set the direction of the occlusion culling or disable it. Default value: CULL_DISABLED.
A Vector2 array with the index for polygon’s vertices positions. Note that the returned value is a copy of the underlying array, rather than a reference.
© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.