You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It used to be the case that we can choose to which eye an object shows, by setting the layers.set(1) or 2.
This does not work in the most recent release anymore.
constmode=useXR(({ mode })=>mode);// emulate the isPresenting flag of v5constisPresenting=mode==='immersive-ar'||mode==='immersive-vr';useLayoutEffect(()=>{if(!isPresenting)return;if(typeoflayers==='number'&&isPresenting){// console.log('setting layers.', layers);planeRef.current.layers.set(layers);}},[layers,isPresenting]);
setting the layers to 1, or 2 does not work anymore.
The text was updated successfully, but these errors were encountered:
@geyang since pmndrs/xr does not do anything in regards to threejs layers, I'd assume this is a problem that also occurs in vanilla threejs. If you have a reason to suspect this is a pmndrs/xr bug, please let me know! :)
It used to be the case that we can choose to which eye an object shows, by setting the layers.set(1) or 2.
This does not work in the most recent release anymore.
setting the layers to 1, or 2 does not work anymore.
The text was updated successfully, but these errors were encountered: