Inheritance: EventDispatcher → Object3D →
Creates a visual aid consisting of a spherical mesh for a given HemisphereLight.
When the hemisphere light is transformed or its light properties are changed, it's necessary to call the update() method of the respective helper.
const light = new THREE.HemisphereLight( 0xffffbb, 0x080820, 1 );
const helper = new THREE.HemisphereLightHelper( light, 5 );
scene.add( helper );
Constructs a new hemisphere light helper.
light
The light to be visualized.
size
The size of the mesh used to visualize the light.
Default is 1.
color
The helper's color. If not set, the helper will take the color of the light.
The color parameter passed in the constructor. If not set, the helper will take the color of the light.
The light being visualized.
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 to match the position and direction of the light being visualized.