Camera layers in WebVR

Hello,
please, in WebVRManager and WebXRManager I see, that camera layers are set, for left camera to 1 and 2 for right camera.
Is this needed for something inside render pipeline?

I have some working code, now trying to enable use of VR but already use layers for show/hide objects. So I’d like to have custom layers, same for both left and right camera.

What is the way to modify layers of VR cameras? I don’t see any api for it, but I’m now on Threejs version 98.

Thanks for response

I stumbled upon the same issue and wish there would be an API to set the layers for the VR camera or at least the layers of the scene camera are kept.
I solved it using scene.onBeforeRender at the first render while vr is active and iterated the camera.cameras array.