I was attempting to use CSM but my camera setup applies maxZ = 0 (infinite far plane).
Although I set shadowMaxZ to a finite value, I think the infinite far plane is breaking CSM: Infinite far plane CSM | Babylon.js Playground (babylonjs.com)
I was attempting to use CSM but my camera setup applies maxZ = 0 (infinite far plane).
Although I set shadowMaxZ to a finite value, I think the infinite far plane is breaking CSM: Infinite far plane CSM | Babylon.js Playground (babylonjs.com)
This PR will fix the problem: