提交 837fa7f2 编写于 作者: M Mr.doob

Updated builds.

上级 052f81ab
......@@ -7472,6 +7472,7 @@ THREE.Object3D = function () {
this.receiveShadow = false;
this.frustumCulled = true;
this.renderOrder = 0;
this.userData = {};
......@@ -20973,7 +20974,11 @@ THREE.WebGLRenderer = function ( parameters ) {
function painterSortStable ( a, b ) {
if ( a.material.id !== b.material.id ) {
if ( a.renderOrder !== b.renderOrder ) {
return a.renderOrder - b.renderOrder;
} else if ( a.material.id !== b.material.id ) {
return a.material.id - b.material.id;
......@@ -20991,7 +20996,11 @@ THREE.WebGLRenderer = function ( parameters ) {
function reversePainterSortStable ( a, b ) {
if ( a.z !== b.z ) {
if ( a.renderOrder !== b.renderOrder ) {
return a.renderOrder - b.renderOrder;
} if ( a.z !== b.z ) {
return b.z - a.z;
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册