Class MaterialResourceFile

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class MaterialResourceFile : public ResourceFile

Representation of a material file. Every material type is inherited from this class.

Subclassed by BasicMaterialResourceFile, CustomMaterialResourceFile, DecalMaterialResourceFile, SkyMaterialResourceFile

Public Functions

bool saveMaterialData(const JSON::json &j)
virtual const Shader *getShader() const = 0
virtual Vector<Ref<GPUTexture>> getTextures() const = 0
virtual void bindShader() = 0
virtual void bindTextures() = 0
virtual void bindSamplers() = 0
virtual void bindVSCB() = 0
virtual void bindPSCB() = 0
virtual JSON::json getJSON() const
virtual ID3D11ShaderResourceView *getPreview() const = 0
void readJSON(const JSON::json &j)
void setAlpha(bool enabled)
bool isAlpha() const
void draw()
template<class T>
T *as()

Protected Functions

MaterialResourceFile(const Type &type, const FilePath &path)