- have an array of textures
- have an array of materials
- material references texture by index
- shader references material by index
thus, to render a mesh with an associated material, a single int needs to be passed. this easily fits into a push constant
a texture/material would be similarily implemented like the mesh lookup. maybe this can be generalized.
thus, to render a mesh with an associated material, a single int needs to be passed. this easily fits into a push constant
a texture/material would be similarily implemented like the mesh lookup. maybe this can be generalized.