shadowCasterOverflowCount property

int get shadowCasterOverflowCount

How many lights asked to cast a shadow last frame but got no slot in the shared shadow atlas, which caps shadow-casting spots and point lights separately (see kMaxSpotShadows and kMaxPointShadows).

Only lights whose range reaches what a view sees compete; the slots go to the ones that appear largest. The losers still light the scene; they just throw no shadow, silently. A nonzero value means more shadowed local lights are in view than the atlas holds, so some authored shadows are not being drawn.

Implementation

int get shadowCasterOverflowCount => _droppedShadowCasters.length;