Skip to content

Commit

Permalink
Fix spec failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeshurun Hembd committed Sep 10, 2024
1 parent 2d6ea50 commit ad274f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/engine/Source/Scene/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,10 @@ View.prototype.createPotentiallyVisibleSet = function (scene) {
frustumSplits.length = numFrustums + 1;
for (let j = 0; j < numFrustums; ++j) {
frustumSplits[j] = frustumCommandsList[j].near;
if (j === numFrustums - 1) {
frustumSplits[j + 1] = frustumCommandsList[j].far;
}
}
frustumSplits[numFrustums] = frustumCommandsList[numFrustums - 1].far;
};

View.prototype.destroy = function () {
Expand Down

0 comments on commit ad274f8

Please sign in to comment.