Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #59 from chenzlabs/more-webxrviewer-work
Browse files Browse the repository at this point in the history
More webxrviewer work
  • Loading branch information
machenmusik authored Apr 11, 2020
2 parents 95f03f8 + c601d48 commit 8a7ee3b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion dist/aframe-ar.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/aframe-ar.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/aframe-ar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/aframe-ar.min.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/mozilla-xr-ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,10 @@ AFRAME.registerComponent('mozilla-xr-ar', {
sy = sy || this.forceResizeY; this.forceResizeY = sy;
sc.canvas.setAttribute('width', sx);
sc.canvas.setAttribute('height', sy);
sc.renderer.setPixelRatio(1);
sc.camera.aspect = sx / sy;
sc.camera.projectionMatrix.copy(self.projectionMatrix);
sc.renderer.setPixelRatio(1);
sc.renderer.setSize(sx, sy, false);
sc.emit('rendererresize', null, false);
},

Expand Down

0 comments on commit 8a7ee3b

Please sign in to comment.