Description
Description
The CSM shadows aren't working anymore.
One of the issues seems to be shadows flickering when moving the camera. I believe the shadow matrices should be updated before rendering. I’d suggest adding onUpdateBefore
and onUpdateAfter
hooks in Node as they seems to be necessary anyway, (I noticed similar issues with reflector and postprocessing), along with associated helpers like onRenderUpdateBefore. However, I’m not sure if this alone would fully resolve the issue. Another problem is that only one shadow appears to be rendered, which might indicate that only one matrix is being updated correctly. /cc @sunag
Live example
https://rawcdn.githack.com/mrdoob/three.js/dev/examples/webgpu_shadowmap_csm.html
Screenshots

Version
r171