提交 a6dfcc68 编写于 作者: J Jaume Sanchez 提交者: Mr.doob

restore viewport correctly (#9747)

上级 4e59e79c
...@@ -311,7 +311,7 @@ THREE.VREffect = function ( renderer, onError ) { ...@@ -311,7 +311,7 @@ THREE.VREffect = function ( renderer, onError ) {
cameraL.projectionMatrix = fovToProjection( eyeParamsL.fieldOfView, true, camera.near, camera.far ); cameraL.projectionMatrix = fovToProjection( eyeParamsL.fieldOfView, true, camera.near, camera.far );
cameraR.projectionMatrix = fovToProjection( eyeParamsR.fieldOfView, true, camera.near, camera.far ); cameraR.projectionMatrix = fovToProjection( eyeParamsR.fieldOfView, true, camera.near, camera.far );
} }
// render left eye // render left eye
...@@ -351,6 +351,7 @@ THREE.VREffect = function ( renderer, onError ) { ...@@ -351,6 +351,7 @@ THREE.VREffect = function ( renderer, onError ) {
} else { } else {
renderer.setViewport( 0, 0, size.width, size.height );
renderer.setScissorTest( false ); renderer.setScissorTest( false );
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册