|
@@ -26442,9 +26442,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
const controllers = [];
|
|
const controllers = [];
|
|
const controllerInputSources = [];
|
|
const controllerInputSources = [];
|
|
|
|
|
|
- const currentSize = new Vector2();
|
|
|
|
- let currentPixelRatio = null;
|
|
|
|
-
|
|
|
|
//
|
|
//
|
|
|
|
|
|
const cameraL = new PerspectiveCamera();
|
|
const cameraL = new PerspectiveCamera();
|
|
@@ -26577,9 +26574,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
//
|
|
//
|
|
|
|
|
|
- renderer.setPixelRatio( currentPixelRatio );
|
|
|
|
- renderer.setSize( currentSize.width, currentSize.height, false );
|
|
|
|
-
|
|
|
|
animation.stop();
|
|
animation.stop();
|
|
|
|
|
|
scope.isPresenting = false;
|
|
scope.isPresenting = false;
|
|
@@ -26636,12 +26630,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
- this._getRenderTarget = function () {
|
|
|
|
-
|
|
|
|
- return newRenderTarget;
|
|
|
|
-
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
this.getFrame = function () {
|
|
this.getFrame = function () {
|
|
|
|
|
|
return xrFrame;
|
|
return xrFrame;
|
|
@@ -26691,9 +26679,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
session.updateRenderState( { baseLayer: glBaseLayer } );
|
|
session.updateRenderState( { baseLayer: glBaseLayer } );
|
|
|
|
|
|
- renderer.setPixelRatio( 1 );
|
|
|
|
- renderer.setSize( glBaseLayer.framebufferWidth, glBaseLayer.framebufferHeight, false );
|
|
|
|
-
|
|
|
|
newRenderTarget = new WebGLRenderTarget(
|
|
newRenderTarget = new WebGLRenderTarget(
|
|
glBaseLayer.framebufferWidth,
|
|
glBaseLayer.framebufferWidth,
|
|
glBaseLayer.framebufferHeight,
|
|
glBaseLayer.framebufferHeight,
|
|
@@ -26731,9 +26716,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
session.updateRenderState( { layers: [ glProjLayer ] } );
|
|
session.updateRenderState( { layers: [ glProjLayer ] } );
|
|
|
|
|
|
- renderer.setPixelRatio( 1 );
|
|
|
|
- renderer.setSize( glProjLayer.textureWidth, glProjLayer.textureHeight, false );
|
|
|
|
-
|
|
|
|
newRenderTarget = new WebGLRenderTarget(
|
|
newRenderTarget = new WebGLRenderTarget(
|
|
glProjLayer.textureWidth,
|
|
glProjLayer.textureWidth,
|
|
glProjLayer.textureHeight,
|
|
glProjLayer.textureHeight,
|
|
@@ -26758,9 +26740,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
customReferenceSpace = null;
|
|
customReferenceSpace = null;
|
|
referenceSpace = await session.requestReferenceSpace( referenceSpaceType );
|
|
referenceSpace = await session.requestReferenceSpace( referenceSpaceType );
|
|
|
|
|
|
- currentPixelRatio = renderer.getPixelRatio();
|
|
|
|
- renderer.getSize( currentSize );
|
|
|
|
-
|
|
|
|
animation.setContext( session );
|
|
animation.setContext( session );
|
|
animation.start();
|
|
animation.start();
|
|
|
|
|
|
@@ -30153,13 +30132,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
this.setRenderTarget = function ( renderTarget, activeCubeFace = 0, activeMipmapLevel = 0 ) {
|
|
this.setRenderTarget = function ( renderTarget, activeCubeFace = 0, activeMipmapLevel = 0 ) {
|
|
|
|
|
|
- // Render to base layer instead of canvas in WebXR
|
|
|
|
- if ( renderTarget === null && this.xr.isPresenting ) {
|
|
|
|
-
|
|
|
|
- renderTarget = this.xr._getRenderTarget();
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
_currentRenderTarget = renderTarget;
|
|
_currentRenderTarget = renderTarget;
|
|
_currentActiveCubeFace = activeCubeFace;
|
|
_currentActiveCubeFace = activeCubeFace;
|
|
_currentActiveMipmapLevel = activeMipmapLevel;
|
|
_currentActiveMipmapLevel = activeMipmapLevel;
|