I found a tip of threejs about shadow rendering here:
- If your scene is static, only update the shadow map when something changes, rather than every frame
Is there anyone can tell me how to achieve this? when I set the castShadow to false. the shadow map just disappear.