2020-06-02 11:46:18 +02:00
|
|
|
#include "MaterialLoader.h"
|
|
|
|
|
#include "Material/Material.h"
|
|
|
|
|
#include "Graphics/Graphics.h"
|
|
|
|
|
|
|
|
|
|
using namespace Seele;
|
|
|
|
|
|
|
|
|
|
MaterialLoader::MaterialLoader(Gfx::PGraphics graphics)
|
|
|
|
|
{
|
|
|
|
|
placeholderMaterial = new Material("shaders/Placeholder.semat");
|
|
|
|
|
placeholderMaterial->compile();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MaterialLoader::~MaterialLoader()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-08 01:44:47 +02:00
|
|
|
PMaterial MaterialLoader::queueAsset(const std::filesystem::path& filePath)
|
2020-06-02 11:46:18 +02:00
|
|
|
{
|
|
|
|
|
PMaterial result = new Material(filePath);
|
2020-06-08 01:44:47 +02:00
|
|
|
// TODO: There is actually no real reason to import a standalone material,
|
|
|
|
|
// maybe in the future there could be a substance loader or something
|
2020-06-02 11:46:18 +02:00
|
|
|
return result;
|
|
|
|
|
}
|