3D model sometimes gets broken in WebXR

In WebXR, sometimes the 3D model gets broken when rotating/zooming and gets restored automatically, not sure why this happens. Any help is appreciated.
Broken Screenshot : -


without Broken : -

Might be related to this browser bug:

1 Like

Thanks Mugen. Added the following code and worked perfectly fine.
Based on jtanant comment :
let gl = this.renderer.getContext();
gl.depthMask(false);
gl.clear(gl.DEPTH_BUFFER_BIT);
gl.depthMask(true);
this.renderer.render(this.scene, this.camera);

1 Like