# RectangleLight

> A helper structure used to initialize a LightDataGI structure as a rectangle light.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Experimental.GlobalIllumination](/engine/6000.5/script-reference/unityengine/experimental/globalillumination.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public struct RectangleLight
```

## Fields

| Value                                                                                                                        | Description                                                |
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [color](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/color.md)                 | The direct light color.                                    |
| [entityId](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/entityid.md)           | The light's entityId.                                      |
| [falloff](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/falloff.md)             | The falloff model to use for baking the rectangular light. |
| [height](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/height.md)               | The height of the rectangle light.                         |
| [indirectColor](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/indirectcolor.md) | The indirect light color.                                  |
| [mode](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/mode.md)                   | The lightmode.                                             |
| [orientation](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/orientation.md)     | The light's orientation.                                   |
| [position](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/position.md)           | The light's position.                                      |
| [range](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/range.md)                 | The light's range.                                         |
| [shadow](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/shadow.md)               | True if the light casts shadows, otherwise False.          |
| [width](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/rectanglelight/width.md)                 | The width of the rectangle light.                          |
