一些无用的代码增加

This commit is contained in:
hyzboy 2025-06-23 02:37:03 +08:00
parent 368056bb96
commit c69fe080dc
10 changed files with 55 additions and 14 deletions

2
CMCore

@ -1 +1 @@
Subproject commit c5b37f98353441520374011020dbe63c17796a4d
Subproject commit 71b459c0246d70d0bba5dd49662b5534c579251e

@ -1 +1 @@
Subproject commit 74e33b497274e51c35a5ee19a274b12dc86deecb
Subproject commit 1e7e4a025cdd03125144e167b62f70a8efdaf245

View File

@ -32,6 +32,24 @@ VK_NAMESPACE_BEGIN
namespace
{
/**
* Gizmo
*/
class GizmoMoveNode:public SceneNode
{
MeshComponent *sphere=nullptr;
struct GizmoMoveAxis
{
MeshComponent *cylinder =nullptr; //圆柱
MeshComponent *cone =nullptr; //圆锥
MeshComponent *square =nullptr; //双轴调节正方形
};
public:
};//class GizmoMoveNode:public SceneNode
static SceneNode *sn_gizmo_move=nullptr;
}//namespace

View File

View File

@ -62,7 +62,8 @@ public:
};
/**
* ()
* ()
* 使StaticMeshMesh
*/
class Mesh
{

View File

@ -15,7 +15,7 @@ namespace hgl
{
uint index; ///<在MaterialRenderList中的索引
MeshComponent *sm_component; ///<静态网格组件
MeshComponent * sm_component; ///<静态网格组件
uint32 l2w_version;
uint32 l2w_index;
@ -23,6 +23,9 @@ namespace hgl
Vector3f world_position;
float to_camera_distance;
//包围盒
//屏幕空间Tile分布
public:
//该函数位于MaterialRenderList.cpp

View File

@ -10,6 +10,8 @@ VK_NAMESPACE_BEGIN
* for(material)
* for(pipeline)
* for(material_instance)
* for(texture)
* for(screen_tile)
* for(vab)
*
*
@ -22,6 +24,8 @@ const int RenderNode::compare(const RenderNode &other)const
{
hgl::int64 off;
//RectScope2i screen_tile;
hgl::graph::Mesh *ri_one=other.sm_component->GetMesh();
hgl::graph::Mesh *ri_two=sm_component->GetMesh();
@ -29,7 +33,6 @@ const int RenderNode::compare(const RenderNode &other)const
auto *prim_two=ri_two->GetPrimitive();
//比较VDM
if(prim_one->GetVDM()) //有VDM
{
off=prim_one->GetVDM()
@ -38,6 +41,14 @@ const int RenderNode::compare(const RenderNode &other)const
if(off)
return off;
//比较纹理
{
}
//比较屏幕空间所占tile
{
}
//比较模型
{
off=prim_one
@ -52,6 +63,14 @@ const int RenderNode::compare(const RenderNode &other)const
}
}
//比较纹理
{
}
//比较屏幕空间所占tile
{
}
//比较距离。。。。。。。。。。。。。。。。。。。。。还不知道这个是正了还是反了,等测出来确认后修改下面的返回值和这里的注释
float foff=other.to_camera_distance