forked from Dynamitos/Seele
Trying to fix invalid descriptorlayout
This commit is contained in:
1 parent
79388bf41a
commit
ceee96b462
69 files changed
+1087
-393
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#include "MaterialLoader.h"
|
||||
#include "Material/Material.h"
|
||||
#include "Graphics/Graphics.h"
|
||||
#include "AssetRegistry.h"
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
@@ -21,7 +22,13 @@ PMaterial MaterialLoader::queueAsset(const std::filesystem::path& filePath)
|
||||
PMaterial result = new Material(filePath);
|
||||
result->compile();
|
||||
graphics->getShaderCompiler()->registerMaterial(result);
|
||||
AssetRegistry::get().registerMaterial(result);
|
||||
// TODO: There is actually no real reason to import a standalone material,
|
||||
// maybe in the future there could be a substance loader or something
|
||||
return result;
|
||||
}
|
||||
|
||||
PMaterial MaterialLoader::getPlaceHolderMaterial()
|
||||
{
|
||||
return placeholderMaterial;
|
||||
}
|
||||
Reference in new issue
Block a user