gboisse / gfx

A minimalist and easy to use graphics API.
MIT License
498 stars 35 forks source link

Allow instancing with different materials on same mesh. #88

Closed maoliver-amd closed 12 months ago

maoliver-amd commented 1 year ago

This moves materials from being attached to each mesh to being attached to the instance. This allows for the same mesh to be used with different materials. The GLTF importer was updated to correctly import scenes that have this type of instancing

gboisse commented 1 year ago

Nice change, any reason to keep it as draft?

maoliver-amd commented 1 year ago

Nice change, any reason to keep it as draft?

Merge conflicts, it was easier to back out and then start again