| 12345678910111213141516171819202122232425262728293031 |
- import { BufferAttribute } from './BufferAttribute';
- /**
- * @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.create( BufferAttribute.prototype );
- InstancedBufferAttribute.prototype.constructor = InstancedBufferAttribute;
- InstancedBufferAttribute.prototype.isInstancedBufferAttribute = true;
- InstancedBufferAttribute.prototype.copy = function ( source ) {
- BufferAttribute.prototype.copy.call( this, source );
- this.meshPerAttribute = source.meshPerAttribute;
- return this;
- };
- export { InstancedBufferAttribute };
|