The Geometry instance to repeat.
The number of times to repeat the geometry.
Creates a BufferAttribute on this geometry instance.
Name of the attribute.
Number of floats per vertex (typically 1, 2, 3 or 4).
Optionalfactory: (data: any[], index: number, prefabCount: number) => voidFunction that will be called for each prefab upon creation. Accepts 3 arguments: data[], index and prefabCount. Calls setPrefabData.
Sets data for a prefab at a given index. Usually called in a loop.
The attribute or attribute name where the data is to be stored.
Index of the prefab in the buffer geometry.
Array of data. Length should be equal to item size of the attribute.
A wrapper around THREE.InstancedBufferGeometry, which is more memory efficient than PrefabBufferGeometry, but requires the ANGLE_instanced_arrays extension.