提交 52318310 编写于 作者: S sunag

fix warn getSize

上级 54354edb
......@@ -8,6 +8,8 @@ function ResolutionNode() {
Vector2Node.call( this );
this.size = new THREE.Vector2();
}
ResolutionNode.prototype = Object.create( Vector2Node.prototype );
......@@ -18,8 +20,9 @@ ResolutionNode.prototype.updateFrame = function ( frame ) {
if ( frame.renderer ) {
var size = frame.renderer.getSize(),
pixelRatio = frame.renderer.getPixelRatio();
frame.renderer.getSize( this.size );
var pixelRatio = frame.renderer.getPixelRatio();
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.
先完成此消息的编辑!
想要评论请 注册