-
Notifications
You must be signed in to change notification settings - Fork 22
Description
When using a camera that pans shadow-casting bodies off-screen, the shadows stop calculating for those bodies eventually. At first I thought it was an issue with my scaling engine and so I was puzzling over it for a while. This came about from an effort to create a 'sun' with a near-infinite radius across many bodies, hence the desire to create large sweeping sunbeams and shadows across a larger landscape. The ambient light was turned way down for this example to highlight the contrast:
2022-11-28.10-55-11.mp4
But then going in and testing this behavior in the example library under 'gamera' created the exact same issue. Watch the yellow light when i pan the object offscreen:
2022-11-28.10-55-42.mp4
Presumably there's some memory-management happening here that is causing bodies to be ignored when off screen.
As seen in the first example, the impact of this can grow rather large with a larger light radius and many shadow bodies.