Jelajahi Sumber

* Matrix4.makeOrtho() fixed

Mr.doob 15 tahun lalu
induk
melakukan
5b1a64e747
3 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 0 0
      build/Three.js
  2. 0 0
      build/ThreeDebug.js
  3. 2 2
      src/core/Matrix4.js

File diff ditekan karena terlalu besar
+ 0 - 0
build/Three.js


File diff ditekan karena terlalu besar
+ 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();
 	w = right - left;
-	h = top - bottom; // - top;
+	h = top - bottom; // bottom - top
 	p = far - near;
 	x = ( right + left ) / w;
-	y = ( bottom + top ) / h;
+	y = ( top + bottom ) / h; // ( bottom + top ) / h
 	z = ( far + near ) / p;
 
 	m.n11 = 2 / w; m.n12 = 0;     m.n13 = 0;      m.n14 = -x;

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini