web3d / node_modules /three /src /core /InstancedInterleavedBuffer.js
julien-c's picture
julien-c HF staff
do not gitignore the builds
6cd9596
raw
history blame contribute delete
689 Bytes
import { InterleavedBuffer } from './InterleavedBuffer.js';
/**
* @author benaadams / https://twitter.com/ben_a_adams
*/
function InstancedInterleavedBuffer( array, stride, meshPerAttribute ) {
InterleavedBuffer.call( this, array, stride );
this.meshPerAttribute = meshPerAttribute || 1;
}
InstancedInterleavedBuffer.prototype = Object.assign( Object.create( InterleavedBuffer.prototype ), {
constructor: InstancedInterleavedBuffer,
isInstancedInterleavedBuffer: true,
copy: function ( source ) {
InterleavedBuffer.prototype.copy.call( this, source );
this.meshPerAttribute = source.meshPerAttribute;
return this;
}
} );
export { InstancedInterleavedBuffer };