Skip to content

Commit

Permalink
Fix batch baseVertex offset.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAPPi committed Sep 22, 2024
1 parent fed4c64 commit 215258f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/batching/batch-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ class BatchManager {
}

for (let j = 0; j < numIndices; j++) {
indices[j + indexOffset] = indexData[indexBase + indexBaseVertex + j] + verticesOffset;
indices[j + indexOffset] = indexData[indexBase + j] + indexBaseVertex + verticesOffset;
}

indexOffset += numIndices;
Expand Down

0 comments on commit 215258f

Please sign in to comment.