isShadowCasterDropped method

bool isShadowCasterDropped(
  1. Object lightComponent
)

Whether lightComponent (a SpotLightComponent or PointLightComponent) asked for a shadow last frame, was in view, and got no slot, one of the lights shadowCasterOverflowCount counts.

Unlike a false isShadowCasterGranted, this excludes lights whose shadow could not have been seen anyway, so editors can flag exactly the shadows the budget is hiding.

Implementation

bool isShadowCasterDropped(Object lightComponent) =>
    _droppedShadowCasters.contains(lightComponent);