Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Dec 7, 2018
1 parent 240d2ca commit 4e2e96d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/webgl_multiple_elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
// set the viewport
var width = rect.right - rect.left;
var height = rect.bottom - rect.top;
var left = rect.left;
var left = rect.left;
var bottom = renderer.domElement.clientHeight - rect.bottom;

renderer.setViewport( left, bottom, width, height );
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_multiple_elements_text.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
// set the viewport
var width = rect.right - rect.left;
var height = rect.bottom - rect.top;
var left = rect.left;
var left = rect.left;
var bottom = renderer.domElement.clientHeight - rect.bottom;

renderer.setViewport( left, bottom, width, height );
Expand Down
4 changes: 2 additions & 2 deletions examples/webgl_multiple_views.html
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@

view.updateCamera( camera, scene, mouseX, mouseY );

var left = Math.floor( windowWidth * view.left );
var left = Math.floor( windowWidth * view.left );
var bottom = Math.floor( windowHeight * view.bottom );
var width = Math.floor( windowWidth * view.width );
var width = Math.floor( windowWidth * view.width );
var height = Math.floor( windowHeight * view.height );

renderer.setViewport( left, bottom, width, height );
Expand Down

0 comments on commit 4e2e96d

Please sign in to comment.