OccluderPolygon2D
Defines a 2D polygon for LightOccluder2D.
Defines a 2D polygon for LightOccluder2D.
Editor facility that helps you draw a 2D polygon used as resource for LightOccluder2D.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
OccluderPolygon2DConstructor
public OccluderPolygon2D();Properties3
ClosedProperty
public bool Closed { get; set; }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.
CullModeProperty
public OccluderPolygon2D.CullModeEnum CullMode { get; set; }The culling mode to use.
Methods7
GetCullModeOccluderPolygon2D.CullModeEnum
public OccluderPolygon2D.CullModeEnum GetCullMode();Returns
OccluderPolygon2D.CullModeEnumGetPolygonVector2[]
public Vector2[] GetPolygon();Returns
Vector2[]IsClosedbool
public bool IsClosed();Returns
boolSetClosedvoid
public void SetClosed(bool closed);| Name | Type | Default |
|---|---|---|
closed | bool | — |
SetCullModevoid
public void SetCullMode(OccluderPolygon2D.CullModeEnum cullMode);| Name | Type | Default |
|---|---|---|
cullMode | OccluderPolygon2D.CullModeEnum | — |
SetPolygon2 overloads
public void SetPolygon(Vector2[] polygon);| Name | Type | Default |
|---|---|---|
polygon | Vector2[] | — |
public void SetPolygon(ReadOnlySpan<Vector2> polygon);| Name | Type | Default |
|---|---|---|
polygon | ReadOnlySpan<Vector2> | — |
OccluderPolygon2D.CullModeEnum
| Value | Description |
|---|---|
Clockwise = 1 | Culling is performed in the clockwise direction. See |
CounterClockwise = 2 | Culling is performed in the counterclockwise direction. See |
Disabled = 0 | Culling is disabled. See |
Reckfell Engine documentationBack to top ↑