一些无用的代码增加

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

View File

View File

@@ -62,7 +62,8 @@ public:
};
/**
* 网格体(网格中的最小渲染单位)
* 网格体(网格渲染中的最小渲染单位,只能是一个材质实例)
* 多材质的网格体使用StaticMesh它内含多个Mesh
*/
class Mesh
{
@@ -98,8 +99,8 @@ public:
Primitive * GetPrimitive (){return primitive;}
const AABB & GetBoundingBox ()const{return primitive->GetBoundingBox();}
const MeshDataBuffer * GetDataBuffer ()const{return data_buffer;}
const MeshRenderData * GetRenderData ()const{return render_data;}
const MeshDataBuffer * GetDataBuffer ()const{return data_buffer;}
const MeshRenderData * GetRenderData ()const{return render_data;}
public:

View File

@@ -13,15 +13,18 @@ namespace hgl
struct RenderNode:public Comparator<RenderNode>
{
uint index; ///<在MaterialRenderList中的索引
uint index; ///<在MaterialRenderList中的索引
MeshComponent *sm_component; ///<静态网格组件
MeshComponent * sm_component; ///<静态网格组件
uint32 l2w_version;
uint32 l2w_index;
uint32 l2w_version;
uint32 l2w_index;
Vector3f world_position;
float to_camera_distance;
Vector3f world_position;
float to_camera_distance;
//包围盒
//屏幕空间Tile分布
public: