Skip to content

single projection layer and stencil:true incompatible with multiview patch #21

@vincentfretin

Description

@vincentfretin

Description

The change to WebXRManager from r172

const useLayers = session.enabledFeatures !== undefined && session.enabledFeatures.includes( 'layers' );

to r173

// Check that the browser implements the necessary APIs to use an
// XRProjectionLayer rather than an XRWebGLLayer
const useLayers = typeof XRWebGLBinding !== 'undefined' && 'createProjectionLayer' in XRWebGLBinding.prototype;

now uses a single projection layer instead of XRWebGLLayer on my Quest 3 r72 browser 36.5
so this is triggering the branch where we have the multiview patch now
and with <a-scene renderer="stencil:true"> needed for the mirror component, it break my experience completely, all my models are translucent.
If I revert the multiview patch 5b5b032 and fd6e7d8
the single projection layer plus stencil:true work correctly.

I tried to use aframe layer component last time with r172 and stencil:true, it also break in the same way so I gave up on testing layers last time. Now I know the issue was the multiview patch.
I'm currently using a super-three r173 version without the multiview patch.
cc @felixtrz

Reproduction steps

  1. set renderer="stencil:true"

Code

// code goes here

Live example

Screenshots

No response

Version

r173

Device

Headset

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions