From 54367eb700788ef41be1ff38bbbbb853c0279e1e Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 20 Jun 2019 21:41:21 +0800 Subject: [PATCH] =?UTF-8?q?WorldMatrix=E5=A2=9E=E5=8A=A0=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=E6=A0=87=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/math/Matrix.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/hgl/math/Matrix.h b/inc/hgl/math/Matrix.h index 59f59e76..604ac981 100644 --- a/inc/hgl/math/Matrix.h +++ b/inc/hgl/math/Matrix.h @@ -13,13 +13,13 @@ namespace hgl struct WorldMatrix { - Matrix4f two_dim; //2D矩阵 + alignas(16) Matrix4f two_dim; //2D矩阵 - Matrix4f projection; -// Matrix4f inverse_projection; - Matrix4f modelview; - Matrix4f mvp; - Matrix3f normal; + alignas(16) Matrix4f projection; +// alignas(16) Matrix4f inverse_projection; + alignas(16) Matrix4f modelview; + alignas(16) Matrix4f mvp; + alignas(16) Matrix3f normal; };// inline Matrix4f identity()