Light Estimation Feature
LightSearch playground for directionalLight
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.
Auto AttachSearch playground for disableAutoAttach
Should auto-attach be disabled?
DisposedSearch playground for isDisposed
Is this feature disposed?
Reflection Cube Map Updated ObservableSearch playground for onReflectionCubeMapUpdatedObservable
This observable will notify when the reflection cube map is updated.
Readonly optionsSearch playground for options
options to use when constructing this feature
Native Feature NameSearch playground for xrNativeFeatureName
The name of the native xr feature name (like anchor, hit-test, or hand-tracking)
Static Readonly NameSearch playground for Name
The module's name
Static Readonly VersionSearch playground for Version
The (Babylon) version of this module. This is an integer representing the implementation version. This number does not correspond to the WebXR specs version
Is this feature attached
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.
attach this feature Will usually be called by the features manager
true if successful.
detach this feature. Will usually be called by the features manager
true if successful.
Dispose this feature and all of the resources attached
CompatibleSearch playground for isCompatible
This function will be executed during before enabling the feature and can be used to not-allow enabling it. Note that at this point the session has NOT started, so this is purely checking if the browser supports it
whether or not the feature is compatible in this environment