@galacean/engine 0.0.0-experimental-renderSort.2 → 0.0.0-experimental-renderSort.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +14 -3
- package/dist/browser.min.js +1 -1
- package/dist/main.js +1 -1
- package/dist/miniprogram.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +5 -5
package/dist/browser.js
CHANGED
|
@@ -26656,7 +26656,12 @@
|
|
|
26656
26656
|
if (componentA.instanceId === componentB.instanceId) {
|
|
26657
26657
|
return dataA.material._priority - dataB.material._priority || componentA._distanceForSort - componentB._distanceForSort;
|
|
26658
26658
|
} else {
|
|
26659
|
-
|
|
26659
|
+
var distanceDiff = componentA._distanceForSort - componentB._distanceForSort;
|
|
26660
|
+
if (distanceDiff === 0) {
|
|
26661
|
+
return componentA.instanceId - componentB.instanceId;
|
|
26662
|
+
} else {
|
|
26663
|
+
return distanceDiff;
|
|
26664
|
+
}
|
|
26660
26665
|
}
|
|
26661
26666
|
};
|
|
26662
26667
|
/**
|
|
@@ -26674,7 +26679,13 @@
|
|
|
26674
26679
|
if (componentA.instanceId === componentB.instanceId) {
|
|
26675
26680
|
return dataA.material._priority - dataB.material._priority || componentB._distanceForSort - componentA._distanceForSort;
|
|
26676
26681
|
} else {
|
|
26677
|
-
return componentB._distanceForSort - componentA._distanceForSort;
|
|
26682
|
+
// return componentB._distanceForSort - componentA._distanceForSort;
|
|
26683
|
+
var distanceDiff = componentB._distanceForSort - componentA._distanceForSort;
|
|
26684
|
+
if (distanceDiff === 0) {
|
|
26685
|
+
return componentA.instanceId - componentB.instanceId;
|
|
26686
|
+
} else {
|
|
26687
|
+
return distanceDiff;
|
|
26688
|
+
}
|
|
26678
26689
|
}
|
|
26679
26690
|
};
|
|
26680
26691
|
return RenderQueue;
|
|
@@ -44028,7 +44039,7 @@
|
|
|
44028
44039
|
], GALACEAN_animation_event);
|
|
44029
44040
|
|
|
44030
44041
|
//@ts-ignore
|
|
44031
|
-
var version = "0.0.0-experimental-renderSort.
|
|
44042
|
+
var version = "0.0.0-experimental-renderSort.3";
|
|
44032
44043
|
console.log("Galacean engine version: " + version);
|
|
44033
44044
|
for(var key in CoreObjects){
|
|
44034
44045
|
Loader.registerClass(key, CoreObjects[key]);
|