Przeglądaj źródła

Removed n.X4 = eye.xyz from lookAt

Mikael Emtinger 14 lat temu
rodzic
commit
42b0d7e0bf
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/core/Matrix4.js

+ 3 - 3
src/core/Matrix4.js

@@ -90,9 +90,9 @@ THREE.Matrix4.prototype = {
 		y.cross( z, x ).normalize();
 
 
-		this.n11 = x.x; this.n12 = y.x; this.n13 = z.x; this.n14 = eye.x;
-		this.n21 = x.y; this.n22 = y.y; this.n23 = z.y; this.n24 = eye.y;
-		this.n31 = x.z; this.n32 = y.z; this.n33 = z.z; this.n34 = eye.z;
+		this.n11 = x.x; this.n12 = y.x; this.n13 = z.x;
+		this.n21 = x.y; this.n22 = y.y; this.n23 = z.y;
+		this.n31 = x.z; this.n32 = y.z; this.n33 = z.z;
 
 		return this;