Improving Material shader code generation

This commit is contained in:
Dynamitos committed 2020-09-19 14:36:50 +02:00
1 parent 6814587b54
commit facbfed79c
72 files changed
+1049 -329

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@
namespace Seele
{
DECLARE_REF(VertexShaderInput);
DECLARE_REF(Material);
class MaterialAsset : public Asset
{
public:
@@ -15,7 +16,7 @@ public:
~MaterialAsset();
virtual void save() = 0;
virtual void load() = 0;
virtual std::string getMaterialName() const = 0;
virtual PMaterial getRenderMaterial() = 0;
Gfx::SeBlendOp getBlendMode() const {return Gfx::SE_BLEND_OP_END_RANGE;}
Gfx::MaterialShadingModel getShadingModel() const {return Gfx::MaterialShadingModel::DefaultLit;}