isShadowCasterGranted method

bool isShadowCasterGranted(
  1. Object lightComponent
)

Whether lightComponent (a SpotLightComponent or PointLightComponent) held a shadow slot last frame.

False for a light that does not cast at all, and also for one whose castsShadow is set but which lost the slot to the budget. Editors pair this with shadowCasterOverflowCount to point at the specific lights whose authored shadow is not being drawn.

Implementation

bool isShadowCasterGranted(Object lightComponent) =>
    _grantedShadowCasters.contains(lightComponent);