donmccurdy / glTF-Transform

glTF 2.0 SDK for JavaScript and TypeScript, on Web and Node.js.
https://gltf-transform.dev
MIT License
1.3k stars 145 forks source link

How to add prefix to baseColor_xx.jpg? #1352

Closed ringcrl closed 2 months ago

ringcrl commented 2 months ago

After using the write method, there will be three files exported: baseColor.jpg, modelName.bin, and modelName.gltf. However, all my resources are stored in one directory. Different models will use the same baseColor.jpg file, but they actually have different contents, which may cause them to overwrite each other. I haven't found a place where I can configure the name "baseColor". Please let me know how can I make the exported texture image in the form of modelName.baseColor.jpg, thank