From b7714d8a836abf7f5c5cc97cc93cf86bebdc759b Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 11 Jan 2022 10:41:18 +0800 Subject: [PATCH] updated MVPMatrix struct --- CMSceneGraph | 2 +- inc/hgl/graph/SceneInfo.h | 16 ++++++++-------- src/SceneGraph/RenderList.cpp | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CMSceneGraph b/CMSceneGraph index 3b1520f5..729f752d 160000 --- a/CMSceneGraph +++ b/CMSceneGraph @@ -1 +1 @@ -Subproject commit 3b1520f5617dee4d34821d4dd7c34121d0c3f8ed +Subproject commit 729f752d7cd93593ec59b5adaa2f981571253dc2 diff --git a/inc/hgl/graph/SceneInfo.h b/inc/hgl/graph/SceneInfo.h index b1d0dca6..ac1d3315 100644 --- a/inc/hgl/graph/SceneInfo.h +++ b/inc/hgl/graph/SceneInfo.h @@ -1,4 +1,4 @@ -#ifndef HGL_GRAPH_SCENE_INFO_INCLUDE +#ifndef HGL_GRAPH_SCENE_INFO_INCLUDE #define HGL_GRAPH_SCENE_INFO_INCLUDE #include @@ -8,25 +8,25 @@ namespace hgl namespace graph { /** - * MVP + * MVP矩阵 */ struct MVPMatrix { Matrix4f l2w; ///< Local to World - Matrix4f inverse_l2w; + //Matrix4f normal; ///matrix.Set(sn->GetLocalToWorldMatrix(),camera_info.vp); + rn->matrix.Set(sn->GetLocalToWorldMatrix(),camera_info.vp,camera_info.view); rn->WorldCenter=sn->GetWorldCenter();