Function: estimatedFromLighting()
function estimatedFromLighting(lighting: XBLightingLike): EstimatedLighting;
Defined in: xrblocks-environment/src/environment-port.ts:54
One reading of the XR Blocks lighting manager, as environment specs.
Pure and exported, because this is where the arithmetic lives and a function
is easier to check than a manager. ambientLight is the probe's DC band, so
it converts exactly as a WebXR estimate does; the directional light points
AT the light, so the key light's direction is its negation.
Parameters
| Parameter | Type |
|---|---|
lighting | XBLightingLike |