Inherits: Resource < RefCounted < Object
Defines a 2D polygon for LightOccluder2D.
Editor facility that helps you draw a 2D polygon used as resource for LightOccluder2D.
| ||
| ||
|
0
Culling is disabled. See cull_mode.
1
Culling is performed in the clockwise direction. See cull_mode.
2
Culling is performed in the counterclockwise direction. See cull_mode.
true
If 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.
0
The culling mode to use.
PackedVector2Array()
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.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_occluderpolygon2d.html