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

CSM: Replace FrustumBoundingBox with Box3 #18755

Merged
merged 3 commits into from
Feb 27, 2020

Conversation

gkjohnson
Copy link
Collaborator

Aside from #18735 this is the last change to remove memory allocation in frequently called functions. This updates CSM to use Box3 instead of FrustumBoundingBox to cut down on redundancy and save on frequent allocation.

Temporary live link:

https://raw.githack.com/gkjohnson/three.js/csm-remove-frustumboundingbox/examples/webgl_shadowmap_csm.html

Next I will be looking into adding fade transitions between cascades.

@vhawk

@mrdoob mrdoob added this to the r114 milestone Feb 27, 2020
@mrdoob
Copy link
Owner

mrdoob commented Feb 27, 2020

Ops! Do you mind resolving the conflicts?

@mrdoob mrdoob merged commit a6dbe0a into mrdoob:dev Feb 27, 2020
@mrdoob
Copy link
Owner

mrdoob commented Feb 27, 2020

Thanks!

@gkjohnson gkjohnson deleted the csm-remove-frustumboundingbox branch February 27, 2020 06:09
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

Successfully merging this pull request may close these issues.

2 participants