zeux / meshoptimizer

Mesh optimization library that makes meshes smaller and faster to render
MIT License
5.49k stars 473 forks source link

Custom attributes ( for example IDs) #665

Closed RyugaRyuzaki closed 5 months ago

RyugaRyuzaki commented 5 months ago

This library is amazing. It would help a lot if there were more custom attributes

zeux commented 5 months ago

Assuming you mean gltfpack, it supports ID attributes in the latest version (0.20); the attribute needs to be named "_ID", "_BATCHID" or "_FEATURE_ID_n" for this to work. Feel free to suggest additional naming schemes to support, these were the ones that are commonly used in the ecosystem.