Skip to content

Commit

Permalink
Swap the batch define true / false order
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Oct 28, 2023
1 parent 5ec01d8 commit 2ff069d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jsm/objects/BatchedMesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,15 +695,15 @@ class BatchedMesh extends Mesh {

onBeforeRender( _renderer, _scene, _camera, _geometry, material/*, _group*/ ) {

material.defines.BATCHING = false;
material.defines.BATCHING = true;

// @TODO: Implement frustum culling for each geometry

}

onAfterRender( _renderer, _scene, _camera, _geometry, material/*, _group*/ ) {

material.defines.BATCHING = true;
material.defines.BATCHING = false;

}

Expand Down

0 comments on commit 2ff069d

Please sign in to comment.