Ver código fonte

fix this.size

sunag 6 anos atrás
pai
commit
b7b6cb6ace
1 arquivos alterados com 2 adições e 2 exclusões
  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 {