ADD: async glTF texture preloading

This commit is contained in:
2025-12-04 16:19:53 +09:00
parent 73e15ee456
commit 017c02e8d7
5 changed files with 50 additions and 1 deletions

View File

@@ -518,6 +518,16 @@ bool SceneManager::removeGLTFInstance(const std::string &name)
return true;
}
std::shared_ptr<LoadedGLTF> SceneManager::getGLTFInstanceScene(const std::string &instanceName) const
{
auto it = dynamicGLTFInstances.find(instanceName);
if (it != dynamicGLTFInstances.end())
{
return it->second.scene;
}
return nullptr;
}
bool SceneManager::getGLTFInstanceTransform(const std::string &name, glm::mat4 &outTransform)
{
auto it = dynamicGLTFInstances.find(name);