OccluderPolygon2D

    Category: Core

    enum CullMode:

    • CULL_DISABLED = 0 — Culling mode for the occlusion. Disabled means no culling. See .
    • CULL_CLOCKWISE = 1 — Culling mode for the occlusion. Sets the culling to be in clockwise direction. See cull_mode.
    • closed

    If , 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: true.



    • polygon

    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.