node-ejs-renderer/node_modules/three/examples/jsm/renderers/common/StorageInstancedBufferAttribute.js
2024-06-09 13:55:01 -04:00

18 lines
411 B
JavaScript

import { InstancedBufferAttribute } from 'three';
class StorageInstancedBufferAttribute extends InstancedBufferAttribute {
constructor( array, itemSize, typeClass = Float32Array ) {
if ( ArrayBuffer.isView( array ) === false ) array = new typeClass( array * itemSize );
super( array, itemSize );
this.isStorageInstancedBufferAttribute = true;
}
}
export default StorageInstancedBufferAttribute;