Up to date
This page is up to date for Godot
If you still find outdated information, please open an issue.
Defines a 2D polygon for LightOccluder2D.
Editor facility that helps you draw a 2D polygon used as resource for LightOccluder2D.
CullMode CULL_DISABLED =
Culling is disabled. See cull_mode.
CullMode CULL_CLOCKWISE =
Culling is performed in the clockwise direction. See cull_mode.
CullMode CULL_COUNTER_CLOCKWISE =
Culling is performed in the counterclockwise direction. See cull_mode.
bool closed =
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.
CullMode cull_mode =
The culling mode to use.
PackedVector2Array polygon =
A Vector2 array with the index for polygon's vertices positions.
Note: The returned value is a copy of the underlying array, rather than a reference.