Skip to content

Commit

Permalink
Fixing the scene traverse sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Selinux24 committed May 14, 2024
1 parent 8015944 commit ccf8bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engine/Common/BaseSceneRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ protected virtual int SortOpaques(int cullIndex, IDrawable c1, IDrawable c2)
}

// Nearest first
res = -d1.CompareTo(d2);
res = d1.CompareTo(d2);
}

if (res == 0)
Expand Down Expand Up @@ -774,7 +774,7 @@ protected virtual int SortTransparents(int cullIndex, IDrawable c1, IDrawable c2
}

// Far objects first
res = d1.CompareTo(d2);
res = -d1.CompareTo(d2);
}

if (res == 0)
Expand Down

0 comments on commit ccf8bc6

Please sign in to comment.