Doubled up embedded textures in GLTF Separate files in Needle with UnityGLTF

@herbst🌵 Let me know if I should make a UnityGLTF git issue for this
image.png

by user 103054507105067008

Using GLTFast below, I made this model by importing the old one into blender, deleting all but one mesh, keeping one material that uses albedo + normal then exporting that to a brand new GLTF+separate file in a new folder of the Unity project, initially it imported with GLTFast then I switched to UnityGLTF importer and I could then see it treating the separate textures as embedded ones
image.png

by user 103054507105067008

Changed the channel name: Doubled up embedded textures in GLTF Separate files in Needle with UnityGLTF

by user 103054507105067008

Can you post an exported glb as well?

Sure, GLB here

by user 103054507105067008

I suspect it is when using a defined textures folder with GLTF + Separate as I used a subfolder called ‘textures’ for them but I can’t repro with a fresh file so idk

by user 103054507105067008

According to gltf report I only have each texture once

this sounds a bit like they end up being exported twice

But the problem is they end up being imported twice with UnityGLTF / exist twice in Unity?

I have to dash off in a minute but tomorrow morning I will compare the build sizes with Needle for you if needed

by user 103054507105067008

I think it is this

by user 103054507105067008

yup, the file looks fine
image.png
image.png

It definitely halved the exported size of the original boat model with all textures when I tested earlier went down from texture size 100mb+ to 40mb~ when switching from UnityGLTF to GLTFast

by user 103054507105067008

That can be observed in this repro project Discord

by user 103054507105067008

maybe because of some import options? 4k vs 2k?

The textures are separate so their import options are default 2k

by user 103054507105067008

somehow the exported textures in that repro project have some 4k in them

by user 103054507105067008

Yup but the repro you sent did use the embedded ones (at least some materials i checked did)

If you open that repro and switch importer of the boat model to GLTFast you will see the production build size drop massively

by user 103054507105067008

I’ll have to do a texture count in gltf.report too from both UnityGLTF and GLTFast exported production builds with that boat from that too

by user 103054507105067008