Skip to content

Light Probe Solver

Updated

Bakes the scene’s light probes and shadows in the editor.

Type
comp-light-probe-solver
Script class
LightProbeSolverComponent
Per entity
One
Version
1.3.0

Read about it in Light probes: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
bounces 0 ≤ x ≤ 3, integer
cubemapSize 4 ≤ x ≤ 64, integer
far 0.001 ≤ x ≤ 1000
near 0.001 ≤ x < 1000
occlusion 0 ≤ x ≤ 1
samples 4 ≤ x ≤ 128, integer
softness 0 ≤ x ≤ 1

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(LightProbeSolverComponent);
if (component) log(component.props);
}