diff --git a/examples/js/controls/VRControls.js b/examples/js/controls/VRControls.js index d2624f99f538ec..afefa70c3fcb39 100755 --- a/examples/js/controls/VRControls.js +++ b/examples/js/controls/VRControls.js @@ -58,6 +58,12 @@ THREE.VRControls = function ( object, onError ) { // standing=true but the VRDisplay doesn't provide stageParameters. this.userHeight = 1.6; + this.getVRDisplay = function () { + + return vrInput; + + }; + this.getStandingMatrix = function () { return standingMatrix; diff --git a/examples/js/effects/VREffect.js b/examples/js/effects/VREffect.js index b2b012f6308dc5..8468a2d5846d90 100644 --- a/examples/js/effects/VREffect.js +++ b/examples/js/effects/VREffect.js @@ -67,6 +67,12 @@ THREE.VREffect = function ( renderer, onError ) { var rendererSize = renderer.getSize(); var rendererPixelRatio = renderer.getPixelRatio(); + this.getVRDisplay = function () { + + return vrHMD; + + }; + this.setSize = function ( width, height ) { rendererSize = { width: width, height: height };