2020-06-02 11:46:18 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include "Asset/Asset.h"
|
2020-08-06 00:54:43 +02:00
|
|
|
#include "Graphics/GraphicsResources.h"
|
2020-06-02 11:46:18 +02:00
|
|
|
#include "ShaderExpression.h"
|
|
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
2020-08-06 00:54:43 +02:00
|
|
|
DECLARE_REF(VertexShaderInput);
|
2020-06-02 11:46:18 +02:00
|
|
|
class MaterialAsset : public Asset
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
MaterialAsset();
|
|
|
|
|
MaterialAsset(const std::string &directory, const std::string &name);
|
2020-06-08 01:44:47 +02:00
|
|
|
MaterialAsset(const std::filesystem::path &fullPath);
|
2020-06-02 11:46:18 +02:00
|
|
|
~MaterialAsset();
|
2020-08-06 00:54:43 +02:00
|
|
|
virtual void save() = 0;
|
|
|
|
|
virtual void load() = 0;
|
|
|
|
|
virtual std::string getMaterialName() const = 0;
|
|
|
|
|
Gfx::SeBlendOp getBlendMode() const {return Gfx::SE_BLEND_OP_END_RANGE;}
|
|
|
|
|
Gfx::MaterialShadingModel getShadingModel() const {return Gfx::MaterialShadingModel::DefaultLit;}
|
|
|
|
|
|
2020-06-02 11:46:18 +02:00
|
|
|
protected:
|
|
|
|
|
//For now its simply the collection of parameters, since there is no point for expressions
|
|
|
|
|
Array<PShaderParameter> parameters;
|
|
|
|
|
};
|
|
|
|
|
DEFINE_REF(MaterialAsset);
|
|
|
|
|
} // namespace Seele
|