use VIL instead of MI in to sort for RenderNode

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-09-20 18:56:09 +08:00
parent 69646971ce
commit ddb5a0b77a

View File

@ -34,10 +34,10 @@ int Comparator<hgl::graph::RenderNode>::compare(const hgl::graph::RenderNode &ob
return off;
}
//比较材质实例
//比较顶点输入格式
{
off=ri_one->GetMaterialInstance()
-ri_two->GetMaterialInstance();
off=ri_one->GetMaterialInstance()->GetVIL()
-ri_two->GetMaterialInstance()->GetVIL();
if(off)
return off;