Capítulo 125 de 859
Visualizes an LightProbeGrid by rendering a sphere at each probe position, shaded with the probe's L2 spherical harmonics.
Uses a single InstancedMesh draw call for all probes.
const helper = new LightProbeGridHelper( probes );
scene.add( helper );
Constructor
| Signature |
|---|
new LightProbeGridHelper( probes : LightProbeGrid, sphereSize : number ) |
Properties
| Property | Description |
|---|---|
.probes : LightProbeGrid | The probe grid 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. |
.update() | Rebuilds instance matrices and UVW attributes from the current probe grid. Call this after changing probes or after re-baking. |