CSM Shadows broken
RenaudRohlinger opened this issue · 1 comments
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
@sunag Thanks for the quick update! Unfortunately, half of the issue is still here. It seems the shadow matrix is updated too late, causing the shadows to flicker when moving the camera in the example.