@spearwolf/twopoint5d
Version:
a library to create 2.5d realtime graphics and pixelart with three.js
11 lines • 402 B
JavaScript
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