1#ifndef _MATERIALCOMPONENT_HPP_
2#define _MATERIALCOMPONENT_HPP_
29 const std::string& diffuseTexture);
36 void Update(
float DeltaTime)
override;
58 bool m_enabled =
true;
Component(GameObject *object)
void SetShininess(float shininess)
bool Initialize() override
Initializes the owned material's GPU resources.
void SetDiffuseTexture(const std::string &path)
Material * GetMaterialRaw() const
void SetDiffuseColor(Math::Color color)
void OnDisable() override
void SetMetallic(float metallic)
void SetRoughness(float roughness)
void Update(float DeltaTime) override
Submits the material to the render command queue for this frame.
MaterialComponent(GameObject *object, const RefPtr< Material > &material)
const RefPtr< Material > & GetMaterial() const
~MaterialComponent() override=default
void SetNormalTexture(const std::string &path)
void SetMaterial(const RefPtr< Material > &material)
Replaces the material, re-initializing it if the component is already initialized.
Root namespace for everything the engine exposes.