未验证 提交 8144dd74 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18178 from Artyom17/fix-webxr-mgr-dev

Fixing wrong antialias, depth, stencil, alpha flags in WebXRManager
......@@ -138,7 +138,14 @@ function WebXRManager( renderer, gl ) {
session.addEventListener( 'end', onSessionEnd );
// eslint-disable-next-line no-undef
session.updateRenderState( { baseLayer: new XRWebGLLayer( session, gl ) } );
session.updateRenderState( { baseLayer: new XRWebGLLayer( session, gl,
{
antialias: gl.getContextAttributes().antialias,
alpha: gl.getContextAttributes().alpha,
depth: gl.getContextAttributes().depth,
stencil: gl.getContextAttributes().stencil
}
) } );
session.requestReferenceSpace( referenceSpaceType ).then( onRequestReferenceSpace );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册