Browse Source

* Matrix4.makeOrtho() fixed

Mr.doob 14 years ago
parent
commit
5b1a64e747
3 changed files with 2 additions and 2 deletions
  1. 0 0
      build/Three.js
  2. 0 0
      build/ThreeDebug.js
  3. 2 2
      src/core/Matrix4.js

File diff suppressed because it is too large
+ 0 - 0
build/Three.js


File diff suppressed because it is too large
+ 0 - 0
build/ThreeDebug.js


+ 2 - 2
src/core/Matrix4.js

@@ -435,10 +435,10 @@ THREE.Matrix4.makeOrtho = function( left, right, top, bottom, near, far ) {
 
 
 	m = new THREE.Matrix4();
 	m = new THREE.Matrix4();
 	w = right - left;
 	w = right - left;
-	h = top - bottom; // - top;
+	h = top - bottom; // bottom - top
 	p = far - near;
 	p = far - near;
 	x = ( right + left ) / w;
 	x = ( right + left ) / w;
-	y = ( bottom + top ) / h;
+	y = ( top + bottom ) / h; // ( bottom + top ) / h
 	z = ( far + near ) / p;
 	z = ( far + near ) / p;
 
 
 	m.n11 = 2 / w; m.n12 = 0;     m.n13 = 0;      m.n14 = -x;
 	m.n11 = 2 / w; m.n12 = 0;     m.n13 = 0;      m.n14 = -x;

Some files were not shown because too many files changed in this diff