Inheritance: EventDispatcher → Object3D → Mesh → InstancedMesh →
Visualizes an LightProbeGrid by rendering a sphere at each probe position, shaded with the probe's L1 spherical harmonics.
Uses a single InstancedMesh draw call for all probes.
const helper = new LightProbeGridHelper( probes );
scene.add( helper );
LightProbeGridHelper is an addon, and must be imported explicitly, see Installation#Addons.
import { LightProbeGridHelper } from 'three/addons/helpers/LightProbeGridHelper.js';
Constructs a new irradiance probe grid helper.
probes
The probe grid to visualize.
sphereSize
The radius of each probe sphere.
Default is 0.12.
The probe grid to visualize.
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
Overrides: InstancedMesh#dispose
Rebuilds instance matrices and UVW attributes from the current probe grid. Call this after changing probes or after re-baking.