Polygon Light#

Polygon light is useful to simulate monochromatic area light, such as window of indoor scene, outdoor emissive shapes.

The shape of polygon light is described by a list of polygon vertices, you can change the shape use preset polygons.

Or assign an customized shape to it.

Polygon shape should be centered at transform position.

It’s suggested to make polygon vertices coplanar (2D polygon).

Attributes#

Range

The radius of bounding sphere, places outside the sphere will not be lighted.

Double Sided

A double sided light will light up both front and back side of the polygon. Otherwise only the front side receives lighting.

PolygonPoints

You can assign a list of customized polygon shapes to this attribute, the polygon points should be 2D polygon, and centered at transform position.

The front direction \( \vec{f} \) is calculted from center \( o \) (transform position or origin if use world position) and polygon vertices. \( a \) and \( b \) are two consecutive vertices of polygon.

\( \vec{f}=\vec{oa} \times \vec{ob} \)

Preset

Some preset polygon shapes like pentagon, hexagon, etc. It’s an editor only attribute for convenience, not accessable at runtime.