Skip to content

CSM Shadows broken #30053

Closed
@RenaudRohlinger

Description

@RenaudRohlinger

Description

Related:
#29849
#29989
#29991

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

image

Version

r171

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions