Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
OccluderPolygon2D¶
Inherits: Resource < RefCounted < Object
Defines a 2D polygon for LightOccluder2D.
Description¶
Editor facility that helps you draw a 2D polygon used as resource for LightOccluder2D.
Properties¶
|
||
|
||
|
Enumerations¶
enum CullMode:
CullMode CULL_DISABLED = 0
Culling is disabled. See cull_mode.
CullMode CULL_CLOCKWISE = 1
Culling is performed in the clockwise direction. See cull_mode.
CullMode CULL_COUNTER_CLOCKWISE = 2
Culling is performed in the counterclockwise direction. See cull_mode.
Property Descriptions¶
bool closed = 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.
CullMode cull_mode =