GLTFLoader: option to keep or prefer original texture or image name as name of loaded texture

Hi @bghgary,

I am definitely after the glTF image, sorry for the confusion.

I think your scenario is fine for glTF imports, as the file name is just the last part of the URL, but it won’t work for glb as far as I have seen, as the url is data:**glbPath**#image**n** in this case.


…which makes sense, since the texture image is baked in the glb file and there is no dedicated url for the texture image.
PG example for glb

Your suggestion concerning 1-to-1 mapping in the InternalTexture sounds good to me.