Browse Source

fix this.size

sunag 6 years ago
parent
commit
b7b6cb6ace
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/nodes/accessors/ResolutionNode.js

+ 2 - 2
examples/js/nodes/accessors/ResolutionNode.js

@@ -24,8 +24,8 @@ ResolutionNode.prototype.updateFrame = function ( frame ) {
 
 		var pixelRatio = frame.renderer.getPixelRatio();
 
-		this.x = size.width * pixelRatio;
-		this.y = size.height * pixelRatio;
+		this.x = this.size.width * pixelRatio;
+		this.y = this.size.height * pixelRatio;
 
 	} else {