18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-20 12:44:59 +01:00

Merge branch 'master' into feat/renderers-cleanup

This commit is contained in:
2026-11-16 21:44:48 +01:00
264 changed files with 41203 additions and 10041 deletions

View File

@@ -66,6 +66,13 @@ struct opengl_material : public IMaterial {
{
return textures[slot];
}
virtual std::vector<texture_handle> GetAllTextures() const override
{
std::vector<texture_handle> all(textures.begin(), textures.end());
for (auto const &variant : texture_variants)
all.insert(all.end(), variant.begin(), variant.end());
return all;
}
// returns texture set to use for model instance identified by provided variant id
texture_set const &GetTextures(std::uint32_t const Variant) const
{