提交 44ad493e 编写于 作者: T Takahiro

Update state instead of WebGLRenderer instance property for rendering with ArrayCamera

上级 4b394cb4
......@@ -1229,12 +1229,6 @@ function WebGLRenderer( parameters ) {
state.buffers.depth.setMask( true );
state.buffers.color.setMask( true );
if ( camera.isArrayCamera ) {
_this.setScissorTest( false );
}
if ( vr.enabled ) {
vr.submitFrame();
......@@ -1424,9 +1418,9 @@ function WebGLRenderer( parameters ) {
var width = bounds.z * _width;
var height = bounds.w * _height;
_this.setViewport( x, y, width, height );
_this.setScissor( x, y, width, height );
_this.setScissorTest( true );
state.viewport( _currentViewport.set( x, y, width, height ) );
state.scissor( _currentScissor.set( x, y, width, height ) );
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.
先完成此消息的编辑!
想要评论请 注册