Model loader now takes into account submeshes transform

This commit is contained in:
antopilo
2024-09-27 01:39:40 -04:00
parent e18dbd292f
commit 28bbb255c5
5 changed files with 56 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ File::File(Ref<Directory> parentDir, const std::string& fullPath, const std::str
FileType File::GetFileType() const
{
const std::string ext = GetExtension();
if (ext == ".png" || ext == ".jpg")
if (ext == ".png" || ext == ".jpg" || ext == ".dds")
{
return FileType::Image;
}
@@ -79,7 +79,7 @@ FileType File::GetFileType() const
return FileType::Mesh;
}
if (ext == ".glb" || ext == ".gltf")
if (ext == ".glb" || ext == ".gltf" || ext == ".fbx")
{
return FileType::MeshAsset;
}