Skip to content

Commit

Permalink
account for pixel ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
au5ton authored and keithclark committed Jun 7, 2019
1 parent 5c9b046 commit 04b05d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/model-element.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/model-element.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/model-element.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/modelLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const init = () => {
alpha: true
});

renderer.setPixelRatio(window.devicePixelRatio);
renderer.setScissorTest(true);
renderer.setClearColor(0x000000, 0);
renderer.autoClear = false;
Expand Down

0 comments on commit 04b05d0

Please sign in to comment.