removed PushConstants at SceneNode/RenderList

This commit is contained in:
2020-11-26 17:51:59 +08:00
parent f57a7afb74
commit 4bd4a9b898
5 changed files with 73 additions and 33 deletions

View File

@@ -24,15 +24,11 @@ namespace hgl
Matrix4f InverseLocalMatrix; ///<反向当前矩阵
Matrix4f InverseLocalToWorldMatrix; ///<反向当前到世界矩阵
PushConstant pc;
public:
SceneOrient();
virtual ~SceneOrient()=default;
PushConstant *GetPushConstant(){return &pc;}
Matrix4f & SetLocalMatrix (const Matrix4f &); ///<设定当前节点矩阵
Matrix4f & SetLocalToWorldMatrix (const Matrix4f &); ///<设定当前节点到世界矩阵
@@ -42,7 +38,9 @@ namespace hgl
const Matrix4f & GetInverseLocalMatrix ()const {return InverseLocalMatrix;}
const Matrix4f & GetInverseLocalToWorldMatrix()const {return InverseLocalToWorldMatrix;}
void RefreshLocalToWorldMatrix (const Matrix4f *); ///<刷新到世界空间矩阵
public:
virtual void RefreshLocalToWorldMatrix (const Matrix4f *); ///<刷新到世界空间矩阵
};//class SceneOrient
}//namespace graph
}//namespace hgl