提交 61ec4453 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11051 from takahirox/ArrayCameraRenderer

Not update renderer property for ArrayCamera render
......@@ -1233,12 +1233,6 @@ function WebGLRenderer( parameters ) {
state.buffers.depth.setMask( true );
state.buffers.color.setMask( true );
if ( camera.isArrayCamera && camera.enabled ) {
_this.setScissorTest( false );
}
camera.onAfterRender( _this );
// _gl.finish();
......@@ -1415,15 +1409,19 @@ function WebGLRenderer( parameters ) {
var camera2 = cameras[ j ];
var bounds = camera2.bounds;
_this.setViewport(
state.viewport(
_currentViewport.set(
bounds.x * _width * _pixelRatio, bounds.y * _height * _pixelRatio,
bounds.z * _width * _pixelRatio, bounds.w * _height * _pixelRatio
)
);
_this.setScissor(
state.scissor(
_currentScissor.set(
bounds.x * _width * _pixelRatio, bounds.y * _height * _pixelRatio,
bounds.z * _width * _pixelRatio, bounds.w * _height * _pixelRatio
)
);
_this.setScissorTest( true );
state.setScissorTest( true );
renderObject( object, scene, camera2, geometry, material, group );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册