Capítulo 323 de 859
A helper for visualizing the cascades of a CSM instance.
import { CSMHelper } from 'three/addons/csm/CSMHelper.js';
Constructor
| Signature |
|---|
| `new CSMHelper( csm : CSM |
Properties
| Property | Description |
|---|---|
| `.csm : CSM | CSMShadowNode` |
.displayFrustum : boolean | Whether to display the CSM frustum or not. |
.displayPlanes : boolean | Whether to display the cascade planes or not. |
.displayShadowBounds : boolean | Whether to display the shadow bounds or not. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app. |
.update() | Updates the helper. This method should be called in the app's animation loop. |
.updateVisibility() | This method must be called if one of the display* properties is changed at runtime. |