Trying to manually “enable/disable” shadow at runtime. There’s an answer here which I’ve followed and was able to disable auto updating for shadow, but unable to clear already existed shadow.
this.renderer.shadowMap.autoUpdate = false;
this.renderer.clearTarget(this.dirLight.shadowMap); // might be this code is incorrect
BTW I’m using EffectComposer with a RenderPass instead of using renderer.render() directly.
Thanks for reading, any advice?