From e030738a5f3ad6da01662c7839e2fa34a24bc456 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Tue, 5 Sep 2023 20:52:55 +0800 Subject: [PATCH] removed old codes of L2W in AssignBuffer --- src/SceneGraph/RenderAssignBuffer.h | 34 ----------------------------- 1 file changed, 34 deletions(-) diff --git a/src/SceneGraph/RenderAssignBuffer.h b/src/SceneGraph/RenderAssignBuffer.h index 0d8caee3..d1bac1ba 100644 --- a/src/SceneGraph/RenderAssignBuffer.h +++ b/src/SceneGraph/RenderAssignBuffer.h @@ -38,9 +38,6 @@ struct RenderAssignBuffer // VBO *bone_id,*bone_weight; // VkBuffer bone_id_buffer,bone_weight_buffer; - VBO *l2w_vbo[4]; - VkBuffer l2w_buffer[4]; - //------------------------------------------------------------ //Assign UBO @@ -70,10 +67,6 @@ public: SAFE_CLEAR(assigns_mi); SAFE_CLEAR(assigns_vbo); - SAFE_CLEAR(l2w_vbo[0]) - SAFE_CLEAR(l2w_vbo[1]) - SAFE_CLEAR(l2w_vbo[2]) - SAFE_CLEAR(l2w_vbo[3]) node_count=0; } @@ -99,12 +92,6 @@ public: ClearNode(); node_count=power_to_2(c); - for(uint i=0;i<4;i++) - { - l2w_vbo[i]=dev->CreateVBO(VF_V4F,node_count); - l2w_buffer[i]=l2w_vbo[i]->GetBuffer(); - } - assigns_l2w=dev->CreateUBO(node_count*sizeof(Matrix4f)); //assigns_mi=dev->CreateUBO(node_count*sizeof(uint8)); assigns_vbo=dev->CreateVBO(VF_V1U16,node_count); @@ -128,27 +115,6 @@ public: { RenderNode *rn; - //old l2w in vertex input stream - { - glm::vec4 *tp; - - for(uint col=0;col<4;col++) - { - tp=(glm::vec4 *)(l2w_vbo[col]->Map()); - - rn=render_node; - - for(uint i=0;ilocal_to_world[col]; - ++tp; - ++rn; - } - - l2w_vbo[col]->Unmap(); - } - } - //new l2w array in ubo { Matrix4f *tp=(hgl::Matrix4f *)(assigns_l2w->Map());