Method ShadowHasBeenPlaceAndRenderedAtLeastOnce
ShadowHasBeenPlaceAndRenderedAtLeastOnce(HDAdditionalLightData, int)
This function verifies if the light if a specific sub-shadow maps is placed in the cached shadow atlas and if it was rendered at least once.
Declaration
public bool ShadowHasBeenPlaceAndRenderedAtLeastOnce(HDAdditionalLightData lightData, int shadowIndex)
Parameters
Type | Name | Description |
---|---|---|
HDAdditionalLightData | lightData | The light that we want to check. |
int | shadowIndex | The sub-shadow index (e.g. cascade index or point light face). It is ignored when irrelevant to the light type. |
Returns
Type | Description |
---|---|
bool | True if the shadow map is already placed in the atlas and rendered at least once, false otherwise. |