From 101ba4487be9ede9e9dd4e041be119a35f6de389 Mon Sep 17 00:00:00 2001 From: Julian Walker Date: Tue, 28 Sep 2010 15:24:14 -0700 Subject: [PATCH] Matrix4.lookAt now initializes W row (omitted previously). --- src/core/Matrix4.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Matrix4.js b/src/core/Matrix4.js index 689ca58a1b..828a64d88c 100644 --- a/src/core/Matrix4.js +++ b/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 ) { -- GitLab