Skip to content

Commit

Permalink
typo on final sort calc
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardspecialist committed Jan 16, 2025
1 parent edca8a8 commit a327c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine/Source/Scene/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -2335,7 +2335,7 @@ function backToFrontSplats(a, b, scene) {
boxB.center,
new Cartesian3(), //use scratch
);
return cameraSpaceA.z * cameraSpaceA.z - (cameraSpaceB.z - cameraSpaceB.z);
return cameraSpaceB.z * cameraSpaceB.z - cameraSpaceA.z * cameraSpaceA.z;
}

function frontToBack(a, b, position) {
Expand Down

0 comments on commit a327c88

Please sign in to comment.