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

Merge pull request #11535 from sunag/86dev

ResolutionNode fix pixel ratio
......@@ -17,9 +17,10 @@ THREE.ResolutionNode.prototype.constructor = THREE.ResolutionNode;
THREE.ResolutionNode.prototype.updateFrame = function( delta ) {
var size = this.renderer.getSize();
var size = this.renderer.getSize(),
pixelRatio = this.renderer.getPixelRatio();
this.x = size.width;
this.y = size.height;
this.x = size.width * pixelRatio;
this.y = size.height * pixelRatio;
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册