three
Version: 
JavaScript 3D library
36 lines (18 loc) • 675 B
JavaScript
import { BufferAttribute } from './BufferAttribute.js';
/**
 * @author benaadams / https://twitter.com/ben_a_adams
 */
function InstancedBufferAttribute( array, itemSize, meshPerAttribute ) {
	BufferAttribute.call( this, array, itemSize );
	this.meshPerAttribute = meshPerAttribute || 1;
}
InstancedBufferAttribute.prototype = Object.assign( Object.create( BufferAttribute.prototype ), {
	constructor: InstancedBufferAttribute,
	isInstancedBufferAttribute: true,
	copy: function ( source ) {
		BufferAttribute.prototype.copy.call( this, source );
		this.meshPerAttribute = source.meshPerAttribute;
		return this;
	}
} );
export { InstancedBufferAttribute };