From ddb5a0b77af75a2412e4dbfa1a29fcc30ceb5e84 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Wed, 20 Sep 2023 18:56:09 +0800 Subject: [PATCH] use VIL instead of MI in to sort for RenderNode --- src/SceneGraph/MaterialRenderList.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SceneGraph/MaterialRenderList.cpp b/src/SceneGraph/MaterialRenderList.cpp index cf99ba8d..3c6e2f4c 100644 --- a/src/SceneGraph/MaterialRenderList.cpp +++ b/src/SceneGraph/MaterialRenderList.cpp @@ -34,10 +34,10 @@ int Comparator::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;