Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
agargaro authored Jan 15, 2025
1 parent 3c801b7 commit 61da9c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ const myInstancedMesh = new InstancedMesh2(geometry, material, { capacity: count

myInstancedMesh.addInstances(count, (obj, index) => { ... }); // add instances and expand buffer if necessary

myInstancedMesh.instancesCount = 10; // change instances count
myInstancedMesh.removeInstances(id0, idx, ...);

myInstancedMesh.clearInstances(); // remove all instances
```

### Per-instance visibility
Expand Down

0 comments on commit 61da9c9

Please sign in to comment.