Pārlūkot izejas kodu

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

Julian Walker 15 gadi atpakaļ
vecāks
revīzija
930faff1ef
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/core/Matrix4.js

+ 1 - 1
src/core/Matrix4.js

@@ -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 ) {