WestLangley 6 年之前
父節點
當前提交
4e2e96d87f

+ 1 - 1
examples/webgl_multiple_elements.html

@@ -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 );

+ 1 - 1
examples/webgl_multiple_elements_text.html

@@ -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 );

+ 2 - 2
examples/webgl_multiple_views.html

@@ -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 );