Function: keyFromEstimate()
function keyFromEstimate(estimate: XrLightEstimateLike): KeyLightSpec | null;
Defined in: threejs-environment/src/light-estimate.ts:77
The primary light of an estimate, or null when there is not one.
WebXR's primaryLightDirection points TOWARD the light. KeyLightSpec
names the direction light TRAVELS, so it is negated here - the same
inversion the three.js port already does when it positions a directional
light, applied once at the source instead of twice by accident.
Parameters
| Parameter | Type |
|---|---|
estimate | XrLightEstimateLike |
Returns
KeyLightSpec | null