[WIP] StaticMesh and GizmoMove

This commit is contained in:
2024-07-28 23:34:04 +08:00
parent eef7f58575
commit f79410e434
11 changed files with 240 additions and 42 deletions

View File

@@ -6,7 +6,7 @@
#include<hgl/graph/VKRenderResource.h>
#include<hgl/graph/RenderList.h>
#include<hgl/graph/Camera.h>
#include<hgl/graph/VKRenderablePrimitiveCreater.h>
#include<hgl/graph/PrimitiveCreater.h>
#include<hgl/graph/mtl/Material3DCreateConfig.h>
using namespace hgl;
@@ -83,7 +83,12 @@ private:
bool CreateRenderObject()
{
ro_plane=inline_geometry::CreatePlane(db,material->GetDefaultVIL());
PrimitiveCreater pc(device,material->GetDefaultVIL());
ro_plane=inline_geometry::CreatePlane(&pc);
if(ro_plane)
db->Add(ro_plane);
return ro_plane;
}