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

[Fix] Fix the bounding sphere calculation for spot lights #4800

Merged
merged 3 commits into from Nov 1, 2022

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Oct 31, 2022

Fixes #4795

Some old code was generating very approximate bounding sphere for spot light. This has been replaced by exact code now, to correctly handle spot light culling.

Before

before.mov

Now

now.mov

@mvaligursky mvaligursky self-assigned this Oct 31, 2022
@mvaligursky mvaligursky added bug area: graphics Graphics related issue labels Oct 31, 2022
@mvaligursky mvaligursky requested a review from a team October 31, 2022 16:37
src/scene/light.js Outdated Show resolved Hide resolved
@willeastcott
Copy link
Contributor

Now that's what I call a great PR description! 👏

@mvaligursky mvaligursky merged commit 65d7b21 into main Nov 1, 2022
@mvaligursky mvaligursky deleted the mv-spot-bounds branch November 1, 2022 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clustered lighting spotlight is culled (?) too early
3 participants