Creates instances of a copy of the given base mesh (or transform node in the case of HierarchyInstancePatch). The instances will be positioned according to the matrix buffer given in the constructor.
The mesh to create instances from.
Returns the number of instances currently rendered.
Clears all instances from the patch. They will be disposed and will not render anymore. The copy of the given base mesh will also be disposed. The matrix buffer will be kept though, which means that calling createInstances() will reuse the same buffer.