move the white_torus to GizmoRotate

This commit is contained in:
2024-09-02 00:32:30 +08:00
parent efd9a447fb
commit bbbd8b06c2
3 changed files with 14 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
#include"GizmoResource.h"
#include<hgl/graph/VKRenderResource.h>
#include<hgl/graph/InlineGeometry.h>
#include<hgl/graph/TransformFaceToCamera.h>
VK_NAMESPACE_BEGIN
@@ -53,6 +54,18 @@ bool InitGizmoRotateStaticMesh()
root_node->CreateSubNode(tm,torus[2]);
}
{
SceneNode *white_torus=new SceneNode(scale(13),torus[3]);
white_torus->SetLocalNormal(AxisVector::X);
TransformFaceToCamera *rotate_white_torus_tfc=new TransformFaceToCamera();
white_torus->GetTransform().AddTransform(rotate_white_torus_tfc);
root_node->AddSubNode(white_torus);
}
sm_gizmo_rotate=CreateGizmoStaticMesh(root_node);
}