提交 6ec0e0a8 编写于 作者: B Boris Smus

Eliminated hardcoded dimension, added support for pixel ratio.

Aside to mrdoob: should the WebGLRenderer provide getSize() => {width:
..., height: ...} element that takes into account pixel ratio?
上级 fe169d3a
......@@ -156,11 +156,9 @@ THREE.VREffect = function ( renderer, done ) {
}
// VR Mode enabled
this._canvasOriginalSize = {
width: renderer.domElement.width,
height: renderer.domElement.height
width: renderer.domElement.width / renderer.getPixelRatio(),
height: renderer.domElement.height / renderer.getPixelRatio()
};
// Hardcoded Rift display size
renderer.setSize( 1280, 800, false );
this.startFullscreen();
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册