Skip to main content

Interface: XBLightingLike

Defined in: xrblocks-environment/src/xrblocks.ts:76

xb.core.lighting.

ambientLight is the DC band of the estimated probe, which XR Blocks copies out of lightProbe.sh.coefficients[0] every frame - the same three numbers WebXR hands back, so the same conversion applies.

Properties

PropertyModifierTypeDefined in
ambientLight?readonlyVec3Likexrblocks-environment/src/xrblocks.ts:83
ambientProbe?readonly{ intensity: number; }xrblocks-environment/src/xrblocks.ts:84
ambientProbe.intensityreadonlynumberxrblocks-environment/src/xrblocks.ts:84
dirLight?readonly{ color: ColourLike; intensity: number; position: Vec3Like; }xrblocks-environment/src/xrblocks.ts:78
dirLight.colorreadonlyColourLikexrblocks-environment/src/xrblocks.ts:79
dirLight.intensityreadonlynumberxrblocks-environment/src/xrblocks.ts:80
dirLight.positionreadonlyVec3Likexrblocks-environment/src/xrblocks.ts:81
options?readonlyXBLightingOptionsLikexrblocks-environment/src/xrblocks.ts:77