[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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user