Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadow calculation falloff - options or intended behavior? #48

Open
Sarcose opened this issue Nov 28, 2022 · 0 comments
Open

Shadow calculation falloff - options or intended behavior? #48

Sarcose opened this issue Nov 28, 2022 · 0 comments

Comments

@Sarcose
Copy link

Sarcose commented Nov 28, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant