[Improve file explorer & implement Assimp with lighting/material support]

- Reworked file explorer UI for clearer hierarchy and usability
- Actually wired up Assimp properly for model loading
- Added basic lighting support
- Added independent material support per mesh
(oh my gosh this took 4 days to actually get working, let alone not crashing 😭)
This commit is contained in:
Anemunt
2025-12-09 03:09:37 -05:00
parent 9f7007f496
commit 9adb1ff2f5
14 changed files with 1725 additions and 200 deletions

View File

@@ -101,6 +101,9 @@ FileCategory FileBrowser::getFileCategory(const fs::directory_entry& entry) cons
return FileCategory::Model;
}
// Material files
if (ext == ".mat") return FileCategory::Material;
// Texture files
if (ext == ".png" || ext == ".jpg" || ext == ".jpeg" || ext == ".bmp" ||
ext == ".tga" || ext == ".dds" || ext == ".hdr") {
@@ -139,6 +142,7 @@ const char* FileBrowser::getFileIcon(const fs::directory_entry& entry) const {
case FileCategory::Folder: return "folder";
case FileCategory::Scene: return "scene";
case FileCategory::Model: return "model";
case FileCategory::Material: return "material";
case FileCategory::Texture: return "image";
case FileCategory::Shader: return "shader";
case FileCategory::Script: return "code";