Class BasicMaterialResourceFile

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class BasicMaterialResourceFile : public MaterialResourceFile

Representation of a Basic material.

Subclassed by AnimatedBasicMaterialResourceFile, InstancingBasicMaterialResourceFile

Public Functions

BasicMaterialResourceFile(const FilePath &path)
virtual ~BasicMaterialResourceFile()
void setColor(const Color &color)
void setDiffuse(Ref<ImageResourceFile> diffuse)
void setNormal(Ref<ImageResourceFile> normal)
void setSpecular(Ref<ImageResourceFile> spec)
void setLightmap(Ref<ImageResourceFile> lightmap)
void setAffectedBySky(bool status)
void setAffectedByLight(bool status)
Color getColor()
Ref<ImageResourceFile> getDiffuse()
Ref<ImageResourceFile> getNormal()
Ref<ImageResourceFile> getSpecular()
Ref<ImageResourceFile> getLightmap()
const Shader *getShader() const
Vector<Ref<GPUTexture>> getTextures() const
void bindShader()
void bindTextures()
void bindSamplers()
void bindVSCB()
void bindPSCB()
JSON::json getJSON() const
ID3D11ShaderResourceView *getPreview() const
void reimport()

Reload the file buffer from disk.

bool save()
void draw()

Public Static Functions

static void Load()
static void Destroy()

Protected Functions

BasicMaterialResourceFile(const Type type, const FilePath &path)

Protected Attributes

Microsoft::WRL::ComPtr<ID3D11Buffer> m_PSCB
Microsoft::WRL::ComPtr<ID3D11Buffer> m_VSCB