polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
18 lines (16 loc) • 534 B
text/typescript
// import {InterleavedBufferAttribute} from 'three/src/core/InterleavedBufferAttribute'
// export class MonkeyPatcher {
// // this allows cloning of geometries containing InterleavedBufferAttribute such as soldier.glb
// static patch(attribute: InterleavedBufferAttribute) {
// Object.assign(attribute, {
// clone: function() {
// return new InterleavedBufferAttribute(
// attribute.data.clone(),
// attribute.itemSize,
// attribute.offset,
// attribute.normalized
// )
// },
// })
// }
// }