提交 baef06bb 编写于 作者: M Mugen87

WebXRManager: Fix call of setProjectionFromUnion().

上级 21ab863e
......@@ -370,7 +370,19 @@ function WebXRManager( renderer, gl ) {
}
setProjectionFromUnion( cameraVR, cameraL, cameraR );
// update projection matrix for proper view frustum culling
if ( cameras.length === 2 ) {
setProjectionFromUnion( cameraVR, cameraL, cameraR );
} else {
// assume single camera setup (AR)
cameraVR.projectionMatrix.copy( cameraL.projectionMatrix );
}
return cameraVR;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册