Skip to content

Commit

Permalink
Updated builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 29, 2023
1 parent c4c439c commit 1d5dc70
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 92 deletions.
44 changes: 14 additions & 30 deletions build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26222,8 +26222,6 @@ class WebXRManager extends EventDispatcher {

//

let userCamera = null;

const cameraL = new PerspectiveCamera();
cameraL.layers.enable( 1 );
cameraL.viewport = new Vector4();
Expand All @@ -26243,19 +26241,11 @@ class WebXRManager extends EventDispatcher {

//

this.cameraAutoUpdate = true; // @deprecated, r153
this.cameraAutoUpdate = true;
this.enabled = false;

this.isPresenting = false;

this.getCamera = function () {}; // @deprecated, r153

this.setUserCamera = function ( value ) {

userCamera = value;

};

this.getController = function ( index ) {

let controller = controllers[ index ];
Expand Down Expand Up @@ -26692,15 +26682,9 @@ class WebXRManager extends EventDispatcher {

}

this.updateCameraXR = function ( camera ) {
this.updateCamera = function ( camera ) {

if ( session === null ) return camera;

if ( userCamera ) {

camera = userCamera;

}
if ( session === null ) return;

cameraXR.near = cameraR.near = cameraL.near = camera.near;
cameraXR.far = cameraR.far = cameraL.far = camera.far;
Expand Down Expand Up @@ -26746,19 +26730,11 @@ class WebXRManager extends EventDispatcher {

// update user camera and its children

if ( userCamera ) {

updateUserCamera( cameraXR, parent );

}

return cameraXR;
updateUserCamera( camera, cameraXR, parent );

};

function updateUserCamera( cameraXR, parent ) {

const camera = userCamera;
function updateUserCamera( camera, cameraXR, parent ) {

if ( parent === null ) {

Expand Down Expand Up @@ -26795,6 +26771,12 @@ class WebXRManager extends EventDispatcher {

}

this.getCamera = function () {

return cameraXR;

};

this.getFoveation = function () {

if ( glProjLayer === null && glBaseLayer === null ) {
Expand Down Expand Up @@ -28933,7 +28915,9 @@ class WebGLRenderer {

if ( xr.enabled === true && xr.isPresenting === true ) {

camera = xr.updateCameraXR( camera ); // use XR camera for rendering
if ( xr.cameraAutoUpdate === true ) xr.updateCamera( camera );

camera = xr.getCamera(); // use XR camera for rendering

}

Expand Down
44 changes: 14 additions & 30 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -26227,8 +26227,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

//

let userCamera = null;

const cameraL = new PerspectiveCamera();
cameraL.layers.enable( 1 );
cameraL.viewport = new Vector4();
Expand All @@ -26248,19 +26246,11 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

//

this.cameraAutoUpdate = true; // @deprecated, r153
this.cameraAutoUpdate = true;
this.enabled = false;

this.isPresenting = false;

this.getCamera = function () {}; // @deprecated, r153

this.setUserCamera = function ( value ) {

userCamera = value;

};

this.getController = function ( index ) {

let controller = controllers[ index ];
Expand Down Expand Up @@ -26697,15 +26687,9 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

this.updateCameraXR = function ( camera ) {
this.updateCamera = function ( camera ) {

if ( session === null ) return camera;

if ( userCamera ) {

camera = userCamera;

}
if ( session === null ) return;

cameraXR.near = cameraR.near = cameraL.near = camera.near;
cameraXR.far = cameraR.far = cameraL.far = camera.far;
Expand Down Expand Up @@ -26751,19 +26735,11 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

// update user camera and its children

if ( userCamera ) {

updateUserCamera( cameraXR, parent );

}

return cameraXR;
updateUserCamera( camera, cameraXR, parent );

};

function updateUserCamera( cameraXR, parent ) {

const camera = userCamera;
function updateUserCamera( camera, cameraXR, parent ) {

if ( parent === null ) {

Expand Down Expand Up @@ -26800,6 +26776,12 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

this.getCamera = function () {

return cameraXR;

};

this.getFoveation = function () {

if ( glProjLayer === null && glBaseLayer === null ) {
Expand Down Expand Up @@ -28938,7 +28920,9 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

if ( xr.enabled === true && xr.isPresenting === true ) {

camera = xr.updateCameraXR( camera ); // use XR camera for rendering
if ( xr.cameraAutoUpdate === true ) xr.updateCamera( camera );

camera = xr.getCamera(); // use XR camera for rendering

}

Expand Down
2 changes: 1 addition & 1 deletion build/three.min.js

Large diffs are not rendered by default.

44 changes: 14 additions & 30 deletions build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -26220,8 +26220,6 @@ class WebXRManager extends EventDispatcher {

//

let userCamera = null;

const cameraL = new PerspectiveCamera();
cameraL.layers.enable( 1 );
cameraL.viewport = new Vector4();
Expand All @@ -26241,19 +26239,11 @@ class WebXRManager extends EventDispatcher {

//

this.cameraAutoUpdate = true; // @deprecated, r153
this.cameraAutoUpdate = true;
this.enabled = false;

this.isPresenting = false;

this.getCamera = function () {}; // @deprecated, r153

this.setUserCamera = function ( value ) {

userCamera = value;

};

this.getController = function ( index ) {

let controller = controllers[ index ];
Expand Down Expand Up @@ -26690,15 +26680,9 @@ class WebXRManager extends EventDispatcher {

}

this.updateCameraXR = function ( camera ) {
this.updateCamera = function ( camera ) {

if ( session === null ) return camera;

if ( userCamera ) {

camera = userCamera;

}
if ( session === null ) return;

cameraXR.near = cameraR.near = cameraL.near = camera.near;
cameraXR.far = cameraR.far = cameraL.far = camera.far;
Expand Down Expand Up @@ -26744,19 +26728,11 @@ class WebXRManager extends EventDispatcher {

// update user camera and its children

if ( userCamera ) {

updateUserCamera( cameraXR, parent );

}

return cameraXR;
updateUserCamera( camera, cameraXR, parent );

};

function updateUserCamera( cameraXR, parent ) {

const camera = userCamera;
function updateUserCamera( camera, cameraXR, parent ) {

if ( parent === null ) {

Expand Down Expand Up @@ -26793,6 +26769,12 @@ class WebXRManager extends EventDispatcher {

}

this.getCamera = function () {

return cameraXR;

};

this.getFoveation = function () {

if ( glProjLayer === null && glBaseLayer === null ) {
Expand Down Expand Up @@ -28931,7 +28913,9 @@ class WebGLRenderer {

if ( xr.enabled === true && xr.isPresenting === true ) {

camera = xr.updateCameraXR( camera ); // use XR camera for rendering
if ( xr.cameraAutoUpdate === true ) xr.updateCamera( camera );

camera = xr.getCamera(); // use XR camera for rendering

}

Expand Down
2 changes: 1 addition & 1 deletion build/three.module.min.js

Large diffs are not rendered by default.

0 comments on commit 1d5dc70

Please sign in to comment.