# LightDataGI

> The interop structure to pass light information to the light baking backends. There are helper structures for Directional, Point, Spot and Rectangle lights to correctly initialize this structure.

## Definition

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

```csharp
public struct LightDataGI
```

## Fields

| Value                                                                                                                                     | Description                                                                                                                                                             |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [color](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/color.md)                                 | The color of the light.                                                                                                                                                 |
| [coneAngle](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/coneangle.md)                         | The cone angle for spot lights.                                                                                                                                         |
| [cookieScale](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/cookiescale.md)                     | The uniform scale factor for downscaling cookies during lightmapping. Can be used as an optimization when full resolution cookies are not needed for indirect lighting. |
| [cookieTextureEntityId](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/cookietextureentityid.md) | The cookie texture's entityId projected by the light.                                                                                                                   |
| [entityId](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/entityid.md)                           | The light's entityId.                                                                                                                                                   |
| [falloff](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/falloff.md)                             | The falloff model to use for baking point and spot lights.                                                                                                              |
| [indirectColor](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/indirectcolor.md)                 | The indirect color of the light.                                                                                                                                        |
| [indirectMultiplier](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/indirectmultiplier.md)       | The multiplier for indirect light intensity. Corresponds to Light.bounceIntensity.                                                                                      |
| [innerConeAngle](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/innerconeangle.md)               | The inner cone angle for spot lights.                                                                                                                                   |
| [mode](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/mode.md)                                   | The lightmap mode for the light.                                                                                                                                        |
| [orientation](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/orientation.md)                     | The orientation of the light.                                                                                                                                           |
| [position](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/position.md)                           | The position of the light.                                                                                                                                              |
| [range](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/range.md)                                 | The range of the light. Unused for directional lights.                                                                                                                  |
| [shadow](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/shadow.md)                               | Set to 1 for shadow casting lights, 0 otherwise.                                                                                                                        |
| [shape0](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/shape0.md)                               | The light's sphere radius for point and spot lights, or the width for rectangle lights.                                                                                 |
| [shape1](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/shape1.md)                               | The height for rectangle lights.                                                                                                                                        |
| [type](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/type.md)                                   | The type of the light.                                                                                                                                                  |

## Methods

| Method                                                                                                              | Description                                                          |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| [Init](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/init.md)             | Initialize the struct with the parameters from the given light type. |
| [InitNoBake](/engine/6000.7/script-reference/unityengine/experimental/globalillumination/lightdatagi/initnobake.md) | Initialize a light so that the baking backends ignore it.            |
