Skip to content
This repository has been archived by the owner on Aug 22, 2020. It is now read-only.

Gltf mesh loading duplicates materials. #61

Open
StarArawn opened this issue Jul 17, 2020 · 0 comments
Open

Gltf mesh loading duplicates materials. #61

StarArawn opened this issue Jul 17, 2020 · 0 comments

Comments

@StarArawn
Copy link
Owner

Currently when loading in GLTF mesh both the mesh import code and the material manager duplicate materials per primitive. We can do better than that and share materials between primitives that have the same material on load.

Thoughts on how to fix. Currently we use a random UUID as the asset key when loading in a material from memory or in this case from the Gltf data. Instead we should perhaps use the material name in the gltf file.

@StarArawn StarArawn changed the title Gltf mesh loading duplicates materails. Gltf mesh loading duplicates materials. Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant