|
@@ -1379,22 +1379,7 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
if ( object.layers.test( camera2.layers ) ) {
|
|
|
|
|
|
- if ( 'viewport' in camera2 ) { // XR
|
|
|
-
|
|
|
- state.viewport( _currentViewport.copy( camera2.viewport ) );
|
|
|
-
|
|
|
- } else {
|
|
|
-
|
|
|
- var bounds = camera2.bounds;
|
|
|
-
|
|
|
- var x = bounds.x * _width;
|
|
|
- var y = bounds.y * _height;
|
|
|
- var width = bounds.z * _width;
|
|
|
- var height = bounds.w * _height;
|
|
|
-
|
|
|
- state.viewport( _currentViewport.set( x, y, width, height ).multiplyScalar( _pixelRatio ) );
|
|
|
-
|
|
|
- }
|
|
|
+ state.viewport( _currentViewport.copy( camera2.viewport ) );
|
|
|
|
|
|
currentRenderState.setupLights( camera2 );
|
|
|
|