Skip to content

CSM Shadow: How to toggle csm shadow #31183

Closed
@ligaofeng0901

Description

@ligaofeng0901

Description

(https://jsfiddle.net/ligaofeng0901/yqv21wtp/26/)
This is a modified version of offical example. if you click the toggle button to disable csm shadow, the shadow node can't be disposed, and the shadow is still here.
The main problem is the light node cann't detect the change of shadownode. And as I konw, there is no way to forcely update light. these code light.needsUpdate = true;light.shadow.needsUpdate =true;light.shadow.shadowNode.needsUpdate = true; all don't work.

Solution

Provide a way to forcely update lightnode ?

Alternatives

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions