Matrix4.lookAt now initializes W row (omitted previously).

This commit is contained in:
Julian Walker
2010-09-29 07:19:32 +08:00
committed by Mr.doob
parent 286402351b
commit 930faff1ef
+1 -1
View File
@@ -46,7 +46,7 @@ THREE.Matrix4.prototype = {
this.n11 = x.x; this.n12 = x.y; this.n13 = x.z; this.n14 = - x.dot( eye );
this.n21 = y.x; this.n22 = y.y; this.n23 = y.z; this.n24 = - y.dot( eye );
this.n31 = z.x; this.n32 = z.y; this.n33 = z.z; this.n34 = - z.dot( eye );
this.n41 = 0; this.n42 = 0; this.n43 = 0; this.n44 = 1;
},
transform: function ( v ) {