Interface IWebXRLightEstimationOptions
createDirectionalLightSource?: boolean;
cubeMapPollInterval?: number;
directionalLightIntensityFactor?: number;
disableCubeMapReflection?: boolean;
disablePreFiltering?: boolean;
disableSphericalPolynomial?: boolean;
disableVectorReuse?: boolean;
lightEstimationPollInterval?: number;
reflectionFormat?: any;
setSceneEnvironmentTexture?: boolean;
}
Properties
Optionalcreate Directional Light Source
Should a directional light source be created. If created, this light source will be updated whenever the light estimation values change
Optionalcube Map Poll Interval
How often should the cubemap update in ms. If not set the cubemap will be updated every time the underlying system updates the environment texture.
Optionaldirectional Light Intensity Factor
The scale factor to multiply the intensity of the directional light by. Defaults to 1.0.
Optionaldisable Cube Map Reflection
Disable the cube map reflection feature. In this case only light direction and color will be updated
Optionaldisable Pre Filtering
disable prefiltering the cube map texture
Optionaldisable Spherical Polynomial
disable applying the spherical polynomial to the cube map texture
Optionaldisable Vector Reuse
Should the light estimation's needed vectors be constructed on each frame. Use this when you use those vectors and don't want their values to change outside of the light estimation feature
Optionallight Estimation Poll Interval
How often should the light estimation properties update in ms. If not set the light estimation properties will be updated on every frame (depending on the underlying system)
Optionalreflection Format
Define the format to be used for the light estimation texture.
Optionalset Scene Environment Texture
Should the scene's env texture be set to the cube map reflection texture Note that this doesn't work is disableCubeMapReflection if set to false
Options for Light Estimation feature