Scene.environment hdr lost during web XR

_G.MYTHREE.scene.environment = _G.SCENES[_G.SID].hdrtex;

works fine in every other browser and device both mobile and desktop. i can set the scene.environment the first time in vr, but it will not update after the first time.

any ideas?

The following demo applies a HDR environment map to Scene.environment and everything works as expected: three.js vr - sandbox

You probably have to modify the above example to demonstrate the issue.

thanks.
I will add a dropdown for other hdrs and see if i can replicate the issue

Still stuck on this.

new THREE.RGBELoader().load(this.scene.hdr, ( _texture )=>{
    _texture.mapping = THREE.EquirectangularReflectionMapping; //THREE.CubeReflectionMapping; //THREE.EquirectangularReflectionMapping;
    this.hdrtex = _texture;
    _G.MYTHREE.scene.environment = this.hdrtex; 
    _G.MYTHREE.scene.environment.needsUpdate = true;
});

Is there a reason why on XR when I add another model to the scene later, the hdr is lost? I can only seem to set scene.environment one time in XR, on the second attempt it doesn’t work.Works fine on desktop and mobile. Only an issue in XR.