Browse Source

Documentation: setViewOffset() snippet was incorrect.

Mr.doob 13 years ago
parent
commit
de83c6bc6c
1 changed files with 12 additions and 12 deletions
  1. 12 12
      docs/api/cameras/PerspectiveCamera.html

+ 12 - 12
docs/api/cameras/PerspectiveCamera.html

@@ -80,18 +80,18 @@ var h = 1080;
 var fullWidth = w * 3;
 var fullHeight = h * 2;
 
-// --A--
-camera.setOffset( fullWidth, fullHeight, w * 0, h * 0, w, h );
-//--B--
-camera.setOffset( fullWidth, fullHeight, w * 1, h * 0, w, h );
-//--C--
-camera.setOffset( fullWidth, fullHeight, w * 2, h * 0, w, h );
-//--D--
-camera.setOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );
-//--E--
-camera.setOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );
-//--F--
-camera.setOffset( fullWidth, fullHeight, w * 2, h * 1, w, h );
+// A
+camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 0, w, h );
+// B
+camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 0, w, h );
+// C
+camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 0, w, h );
+// D
+camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );
+// E
+camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );
+// F
+camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 1, w, h );
 </code>
 
 Note there is no reason monitors have to be the same size or in a grid.