Capítulo 141 de 859
Creates a visual aid for rect area lights.
RectAreaLightHelper must be added as a child of the light.
undefined, the helper will take the color of the light.const light = new THREE.RectAreaLight( 0xffffbb, 1.0, 5, 5 );
const helper = new RectAreaLightHelper( light );
light.add( helper );
Constructor
| Signature |
|---|
| `new RectAreaLightHelper( light : RectAreaLight, color : number |
Properties
| Property | Description |
|---|---|
| `.color : number | Color |
.light : RectAreaLight | The light to visualize. |
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. |