Each XRSession has an active render state which is a new XRRenderState,
The renderState attribute returns the XRSession's active render state.
But in webxr-polyfill it's initialized as null.
I tested with the following code and I get the different result between on Canary and on webxr-polyfill.
navigator.xr.requestSession('inline').then(session => {
// XRRenderState instance on Canary WebXR while null on webxr-polyfill
console.log(session.renderState);
});
If I understand the WebXR API spec correctly, the initial
renderState
ofXRSession
should be a newXRRenderState
instance.https://immersive-web.github.io/webxr/#xrsession-interface
But in webxr-polyfill it's initialized as
null
.I tested with the following code and I get the different result between on Canary and on webxr-polyfill.