|
@@ -95,8 +95,8 @@ THREE.VREffect = function ( renderer, done ) {
|
|
camera.updateMatrixWorld();
|
|
camera.updateMatrixWorld();
|
|
}
|
|
}
|
|
|
|
|
|
- cameraLeft.projectionMatrix = this.FovToProjection( this.leftEyeFOV );
|
|
|
|
- cameraRight.projectionMatrix = this.FovToProjection( this.rightEyeFOV );
|
|
|
|
|
|
+ cameraLeft.projectionMatrix = this.FovToProjection( this.leftEyeFOV, true, camera.near, camera.far );
|
|
|
|
+ cameraRight.projectionMatrix = this.FovToProjection( this.rightEyeFOV, true, camera.near, camera.far );
|
|
|
|
|
|
camera.matrixWorld.decompose( cameraLeft.position, cameraLeft.quaternion, cameraLeft.scale );
|
|
camera.matrixWorld.decompose( cameraLeft.position, cameraLeft.quaternion, cameraLeft.scale );
|
|
camera.matrixWorld.decompose( cameraRight.position, cameraRight.quaternion, cameraRight.scale );
|
|
camera.matrixWorld.decompose( cameraRight.position, cameraRight.quaternion, cameraRight.scale );
|
|
@@ -116,6 +116,10 @@ THREE.VREffect = function ( renderer, done ) {
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ this.setSize = function( width, height ) {
|
|
|
|
+ renderer.setSize( width, height );
|
|
|
|
+ };
|
|
|
|
+
|
|
this.setFullScreen = function( enable ) {
|
|
this.setFullScreen = function( enable ) {
|
|
var renderer = this._renderer;
|
|
var renderer = this._renderer;
|
|
var vrHMD = this._vrHMD;
|
|
var vrHMD = this._vrHMD;
|
|
@@ -231,4 +235,4 @@ THREE.VREffect = function ( renderer, done ) {
|
|
return this.FovPortToProjection(fovPort, rightHanded, zNear, zFar);
|
|
return this.FovPortToProjection(fovPort, rightHanded, zNear, zFar);
|
|
};
|
|
};
|
|
|
|
|
|
-};
|
|
|
|
|
|
+};
|