moisesjpelaez - General Material Updates

This commit is contained in:
2025-09-19 17:23:42 +00:00
parent 43be7729ba
commit 3d99fa60c0

View File

@ -338,7 +338,7 @@ class RenderPath {
if (depthDiff != 0) return depthDiff;
#end
return a.materials[0].name >= b.materials[0].name ? 1 : -1;
return a.materials[0].shader.sortingOrder >= b.materials[0].shader.sortingOrder ? 1 : -1;
});
}