From 5bbf2e79532487363521fd45579c3d5514ada6c1 Mon Sep 17 00:00:00 2001 From: liuchunling Date: Thu, 5 Sep 2019 12:18:23 +0800 Subject: [PATCH] fix matrix bug --- src/layaAir/laya/d3/math/Matrix4x4.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layaAir/laya/d3/math/Matrix4x4.ts b/src/layaAir/laya/d3/math/Matrix4x4.ts index b90a15a1a9..248803f483 100644 --- a/src/layaAir/laya/d3/math/Matrix4x4.ts +++ b/src/layaAir/laya/d3/math/Matrix4x4.ts @@ -588,9 +588,9 @@ export class Matrix4x4 implements IClone { re[10] = at.z; // In case of reflexions//TODO:是否不用计算dot后的值即为结果 - ((re[0] * m11 + re[1] * m12 + re[2] * m13)/*Vector3.dot(right,Right)*/ < 0.0) && (se[0] = -sX); - ((re[4] * m21 + re[5] * m22 + re[6] * m23)/* Vector3.dot(up, Up)*/ < 0.0) && (se[1] = -sY); - ((re[8] * m31 + re[9] * m32 + re[10] * m33)/*Vector3.dot(at, Backward)*/ < 0.0) && (se[2] = -sZ); + ((re[0] * m11 + re[1] * m12 + re[2] * m13)/*Vector3.dot(right,Right)*/ < 0.0) && (se.x = -sX); + ((re[4] * m21 + re[5] * m22 + re[6] * m23)/* Vector3.dot(up, Up)*/ < 0.0) && (se.y = -sY); + ((re[8] * m31 + re[9] * m32 + re[10] * m33)/*Vector3.dot(at, Backward)*/ < 0.0) && (se.z = -sZ); return true; }