Method LightHasBeenPlaceAndRenderedAtLeastOnce
LightHasBeenPlaceAndRenderedAtLeastOnce(HDAdditionalLightData, int)
This function verifies if the light has its shadow maps placed in the cached shadow atlas and if it was rendered at least once.
Declaration
public bool LightHasBeenPlaceAndRenderedAtLeastOnce(HDAdditionalLightData lightData, int numberOfCascades = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| HDAdditionalLightData | lightData | The light that we want to check. |
| int | numberOfCascades | Optional parameter required only when querying data about a directional light. It needs to match the number of cascades used by the directional light. |
Returns
| Type | Description |
|---|---|
| bool | True if the shadow map is already placed in the atlas and rendered at least once, false otherwise. |