API

Class WebXRLightEstimationSince

Light Estimation Feature

5.0.0

Hierarchy (View Summary)

Index
dependsOn?: string[]

The dependencies of this feature, if any

directionalLight: Nullable<DirectionalLight> = null

If createDirectionalLightSource is set to true this light source will be created automatically. Otherwise this can be set with an external directional light source. This light will be updated whenever the light estimation values change.

directionalLightIntensityFactor: number = 1.0

The scale factor to multiply the intensity of the directional light by. Defaults to 1.0.

disableAutoAttach: boolean = false

Should auto-attach be disabled?

isDisposed: boolean = false

Is this feature disposed?

onFeatureAttachObservable: Observable<IWebXRFeature> = ...

Observers registered here will be executed when the feature is attached

onFeatureDetachObservable: Observable<IWebXRFeature> = ...

Observers registered here will be executed when the feature is detached

onReflectionCubeMapUpdatedObservable: Observable<BaseTexture> = ...

This observable will notify when the reflection cube map is updated.

options to use when constructing this feature

Name: "xr-light-estimation" = WebXRFeatureName.LIGHT_ESTIMATION

The module's name

Version: 1

The (Babylon) version of this module. This is an integer representing the implementation version. This number does not correspond to the WebXR specs version

  • get reflectionCubeMapTexture(): Nullable<BaseTexture>

    While the estimated cube map is expected to update over time to better reflect the user's environment as they move around those changes are unlikely to happen with every XRFrame. Since creating and processing the cube map is potentially expensive, especially if mip maps are needed, you can listen to the onReflectionCubeMapUpdatedObservable to determine when it has been updated.

    Returns Nullable<BaseTexture>