InstancedInterleavedBuffer.js 685 B

1234567891011121314151617181920
  1. /**
  2. * @author benaadams / https://twitter.com/ben_a_adams
  3. */
  4. THREE.InstancedInterleavedBuffer = function ( array, stride, dynamic, meshPerAttribute ) {
  5. THREE.InterleavedBuffer.call( this, array, stride, dynamic );
  6. this.meshPerAttribute = meshPerAttribute || 1;
  7. };
  8. THREE.InstancedInterleavedBuffer.prototype = Object.create( THREE.InterleavedBuffer.prototype );
  9. THREE.InstancedInterleavedBuffer.prototype.constructor = THREE.InstancedInterleavedBuffer;
  10. THREE.InstancedInterleavedBuffer.prototype.clone = function () {
  11. return new THREE.InstancedInterleavedBuffer( new this.array.constructor( this.array ), this.stride, this.dynamic, this.meshPerAttribute );
  12. };
粤ICP备19079148号