Skip to content

Conversation

@brentyi
Copy link
Collaborator

@brentyi brentyi commented Mar 21, 2025

Shadows were previously broken for large scenes, here the robots in the back have them but not the robots in the front:
image

This PR fixes this using cascaded shadow maps:
image

Ideally we would import three.js's built-in CSM module (based on StrandedKitty/three-csm), but there's a minor upstream bug that prevents this. I mirrored the whole module over for now, but we can clean this up when the next three.js release happens. Context: mrdoob/three.js#30771

Fixes #400

@brentyi brentyi merged commit 3a5206c into main Mar 21, 2025
15 checks passed
@brentyi brentyi deleted the brent/csm branch March 21, 2025 04: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.

Shadow rendering problems for large scenes

2 participants