Skip to content

Commit

Permalink
fix pixel ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Jun 16, 2017
1 parent a130734 commit 3a619a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/js/nodes/utils/ResolutionNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

};

0 comments on commit 3a619a8

Please sign in to comment.