迁移auto_merge_material_instance,BillboardTest,PlaneGrid3D,RayPicking四个测试范例到新的Component结构

This commit is contained in:
2025-06-15 02:03:38 +08:00
parent cfda1fceb2
commit a180970eb6
5 changed files with 15 additions and 19 deletions

View File

@@ -11,6 +11,7 @@
#include<hgl/graph/mtl/Material3DCreateConfig.h>
#include<hgl/graph/VertexDataManager.h>
#include<hgl/graph/VKVertexInputConfig.h>
#include<hgl/component/StaticMeshComponent.h>
using namespace hgl;
using namespace hgl::graph;
@@ -100,7 +101,7 @@ private:
return(nullptr);
}
parent_node->Add(new SceneNode(ri));
CreateComponent<StaticMeshComponent>(parent_node,ri);
return ri;
}