提交 570499d5 编写于 作者: B Brian Chirls 提交者: Mr.doob

Render sort order should consider shared shaders to minimize switching (#9164)

上级 5d9d6d50
......@@ -1042,6 +1042,10 @@ THREE.WebGLRenderer = function ( parameters ) {
return a.object.renderOrder - b.object.renderOrder;
} else if ( a.material.program && b.material.program && a.material.program !== b.material.program ) {
return a.material.program.id - b.material.program.id;
} else if ( a.material.id !== b.material.id ) {
return a.material.id - b.material.id;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册