Class reference

OccluderPolygon2D

Inherits Resource

Defines a 2D polygon for LightOccluder2D.

Description

Editor facility that helps you draw a 2D polygon used as resource for LightOccluder2D.

Properties

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.

int cull_mode = 0

The culling mode to use.

Constants

CULL_DISABLED = 0

Enum: CullMode

Culling is disabled. See cull_mode.

CULL_CLOCKWISE = 1

Enum: CullMode

Culling is performed in the clockwise direction. See cull_mode.

CULL_COUNTER_CLOCKWISE = 2

Enum: CullMode

Culling is performed in the counterclockwise direction. See cull_mode.

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.