File: RectAreaLightHelper.md | Updated: 11/15/2025
Creates a visual aid for rect area lights.
RectAreaLightHelper must be added as a child of the light.
const light = new THREE.RectAreaLight( 0xffffbb, 1.0, 5, 5 );
const helper = new RectAreaLightHelper( light );
light.add( helper );
RectAreaLightHelper is an addon, and must be imported explicitly, see Installation#Addons.
import { RectAreaLightHelper } from 'three/addons/helpers/RectAreaLightHelper.js';
Constructs a new rect area light helper.
light | The light to visualize.
---|---
color | The helper's color. If this is not the set, the helper will take the color of the light.
The helper's color. If undefined, the helper will take the color of the light.
The light to visualize.
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.