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

VREffect: Clean up.

上级 5cf791f9
......@@ -137,10 +137,6 @@ THREE.VREffect = function ( renderer, onError ) {
window.addEventListener( 'vrdisplaypresentchange', onVRDisplayPresentChange, false );
this.dispose = function () {
window.removeEventListener( 'vrdisplaypresentchange', onVRDisplayPresentChange, false );
};
this.setFullScreen = function ( boolean ) {
return new Promise( function ( resolve, reject ) {
......@@ -280,7 +276,6 @@ THREE.VREffect = function ( renderer, onError ) {
}
renderRectL = {
x: Math.round( size.width * leftBounds[ 0 ] ),
y: Math.round( size.height * leftBounds[ 1 ] ),
......@@ -398,6 +393,12 @@ THREE.VREffect = function ( renderer, onError ) {
};
this.dispose = function () {
window.removeEventListener( 'vrdisplaypresentchange', onVRDisplayPresentChange, false );
};
//
function fovToNDCScaleOffset( fov ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册