Skip to content

Commit

Permalink
Update VREffect.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyH2 committed Mar 21, 2024
1 parent d6674b0 commit 8c3c094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/VREffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ THREE.VREffect = function ( renderer, onError ) {
if ( ! wasPresenting ) {

rendererPixelRatio = renderer.getPixelRatio();
rendererSize = renderer.getSize();
rendererSize = new THREE.Vector2( 0, 0 ); renderer.getSize(rendererSize);

renderer.setPixelRatio( 1 );
renderer.setSize( eyeWidth * 2, eyeHeight, false );
Expand Down

0 comments on commit 8c3c094

Please sign in to comment.