Added UpdateMaterialInstance method. but no any test.

This commit is contained in:
2024-08-30 03:36:01 +08:00
parent 726a8ec635
commit 72ceffeda2
8 changed files with 81 additions and 7 deletions

View File

@@ -13,13 +13,15 @@ namespace hgl
struct RenderNode
{
SceneNode *scene_node;
uint index; ///<在MaterialRenderList中的索引
uint32 l2w_version;
uint32 l2w_index;
SceneNode * scene_node;
Vector3f world_position;
float to_camera_distance;
uint32 l2w_version;
uint32 l2w_index;
Vector3f world_position;
float to_camera_distance;
};
using RenderNodeList=List<RenderNode>;