Used Transform instead of Matrix4f in SceneOrient, MaterialRenderList/RenderAssignBuffer supports updating the L2WMatrix of only the changed objects

This commit is contained in:
2024-08-04 22:35:31 +08:00
parent 3768507169
commit 5213651054
14 changed files with 196 additions and 81 deletions

View File

@@ -15,11 +15,15 @@ namespace hgl
{
SceneNode *scene_node;
uint32 l2w_transform_version;
uint32 l2w_index;
Vector3f world_position;
float to_camera_distance;
};
using RenderNodeList=List<RenderNode>;
using RenderNodePointerList=List<RenderNode *>;
using MaterialInstanceSets=SortedSets<MaterialInstance *>; ///<材质实例集合
}//namespace graph