updated codes support new MaterialRenderList::Add
This commit is contained in:
parent
898d01ac62
commit
1a15b93e15
@ -30,7 +30,7 @@ namespace hgl
|
||||
public:
|
||||
|
||||
RenderList(GPUDevice *);
|
||||
virtual ~RenderList();
|
||||
virtual ~RenderList()=default;
|
||||
|
||||
virtual bool Expend(SceneNode *); ///<展开场景树到渲染列表
|
||||
|
||||
|
@ -18,10 +18,6 @@ namespace hgl
|
||||
renderable_count=0;
|
||||
}
|
||||
|
||||
RenderList::~RenderList()
|
||||
{
|
||||
}
|
||||
|
||||
bool RenderList::ExpendNode(SceneNode *sn)
|
||||
{
|
||||
if(!sn)return(false);
|
||||
@ -40,7 +36,7 @@ namespace hgl
|
||||
mrl_map.Add(mtl,mrl);
|
||||
}
|
||||
|
||||
mrl->Add(ri,sn->GetLocalToWorldMatrix());
|
||||
mrl->Add(sn);
|
||||
|
||||
++renderable_count;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user