Quest 2 black screen in WebXR when scene.autoClear=false and using layers feature

Hi,
I’ve noticed that when:

  • scene.autoClear is set to false
  • BABYLON.WebXRFeatureName.LAYERS is enabled

The scene will show a blank/black screen when entering WebXR on a Quest 2.

playground showing issue: https://playground.babylonjs.com/#9K3MRA#1002

playground showing no issue when BABYLON.WebXRFeatureName.LAYERS is not enabled: https://playground.babylonjs.com/#9K3MRA#1003

This is an issue for me as I’m trying to get every last drop of performance out of the Quest and it would be great if the screen was not cleared each frame when I show a skybox.

Thanks :slight_smile:

i’d be happy to look into that! but i sadly can’t promise a very quick resolution…

1 Like

[XR] clear as default when in layers multiview by RaananW · Pull Request #13297 · BabylonJS/Babylon.js (github.com)

3 Likes