提交 cf9998b7 编写于 作者: M Mr.doob

VRControls/VREffect: Fixed more breakage.

上级 6c622248
......@@ -12,8 +12,11 @@ THREE.VRControls = function ( object, onError ) {
var standingMatrix = new THREE.Matrix4();
var frameData = null;
if ( 'VRFrameData' in window ) {
frameData = new VRFrameData();
}
function gotVRDisplays( displays ) {
......@@ -52,15 +55,22 @@ THREE.VRControls = function ( object, onError ) {
// standing=true but the VRDisplay doesn't provide stageParameters.
this.userHeight = 1.6;
this.setDisplay = function ( display ) {
this.getVRDisplay = function () {
vrDisplay = display;
return vrDisplay;
};
this.getDisplay = function () {
this.setVRDisplay = function ( value ) {
return vrDisplay;
vrDisplay = value;
};
this.getVRDisplays = function () {
console.warn( 'THREE.VRControls: getVRDisplays() is being deprecated.' );
return vrDisplays;
};
......
......@@ -17,6 +17,7 @@ THREE.VREffect = function ( renderer, onError ) {
var renderRectL, renderRectR;
var frameData = null;
if ( 'VRFrameData' in window ) {
frameData = new VRFrameData();
......@@ -56,15 +57,22 @@ THREE.VREffect = function ( renderer, onError ) {
var rendererUpdateStyle = false;
var rendererPixelRatio = renderer.getPixelRatio();
this.setDisplay = function ( display ) {
this.getVRDisplay = function () {
vrDisplay = display;
return vrDisplay;
};
this.getDisplay = function () {
this.setVRDisplay = function ( value ) {
return vrDisplay;
vrDisplay = value;
};
this.getVRDisplays = function () {
console.warn( 'THREE.VREffect: getVRDisplays() is being deprecated.' );
return vrDisplays;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册