diff --git a/examples/jsm/objects/BatchedMesh.js b/examples/jsm/objects/BatchedMesh.js index f31db79cc277e3..360256a095bb09 100644 --- a/examples/jsm/objects/BatchedMesh.js +++ b/examples/jsm/objects/BatchedMesh.js @@ -695,7 +695,7 @@ 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 @@ -703,7 +703,7 @@ class BatchedMesh extends Mesh { onAfterRender( _renderer, _scene, _camera, _geometry, material/*, _group*/ ) { - material.defines.BATCHING = true; + material.defines.BATCHING = false; }