text: #include "Material.h"
  
  // Constructor
  Material::Material(const std::string &name, const glm::vec3 &ambient, const glm::vec3 &diffuse,
                     const glm::vec3 &specular, GLfloat shininess)
      : Resource{name}, m_ambient(ambient), m_diffuse(diffuse), m_specular(specular),
        m_shininess(shininess) {}
  
  // Use this material
  void Material::use(const Shader &shader) const {
    shader.setVec3("material.ambient", m_ambient);
    shader.setVec3("material.diffuse", m_diffuse);
    shader.setVec3("material.specular", m_specular);
    shader.setFloat("material.shininess", m_shininess);
  }
  