use VIL instead of MI in to sort for RenderNode
This commit is contained in:
parent
69646971ce
commit
ddb5a0b77a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user