UNPKG

@spearwolf/twopoint5d

Version:

Create 2.5D realtime graphics and pixelart with WebGL and three.js

11 lines 402 B
export function selectAttributes(pool, buffers, attrNames) { const attrs = new Set(); for (const name of attrNames) { const bufAttr = pool.buffer.bufferAttributes.get(name); if (bufAttr) { attrs.add(bufAttr.bufferName); } } return Array.from(attrs.values()).map((bufferName) => buffers.get(bufferName)); } //# sourceMappingURL=selectAttributes.js.map