File: CSMHelper.md | Updated: 11/15/2025
A helper for visualizing the cascades of a CSM instance.
CSMHelper is an addon, and must be imported explicitly, see Installation#Addons.
import { CSMHelper } from 'three/addons/csm/CSMHelper.js';
Constructs a new CSM helper.
csm | The CSM instance to visualize.
---|---
The CSM instance to visualize.
Whether to display the CSM frustum or not.
Default is true.
Whether to display the cascade planes or not.
Default is true.
Whether to display the shadow bounds or not.
Default is true.
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
Updates the helper. This method should be called in the app's animation loop.
This method must be called if one of the display* properties is changed at runtime.