add("diffuse", &Loader::diffuse);
add("specular", &Loader::specular);
add("emission", &Loader::emission);
add("diffuse", &Loader::diffuse);
add("specular", &Loader::specular);
add("emission", &Loader::emission);
}
void Material::Loader::ambient(float r, float g, float b, float a)
{
}
void Material::Loader::ambient(float r, float g, float b, float a)
{
- obj.ambient = GL::Color(r, g, b, a);
+ obj.set_ambient(GL::Color(r, g, b, a));
}
void Material::Loader::diffuse(float r, float g, float b, float a)
{
}
void Material::Loader::diffuse(float r, float g, float b, float a)
{
- obj.diffuse = GL::Color(r, g, b, a);
+ obj.set_diffuse(GL::Color(r, g, b, a));
}
void Material::Loader::specular(float r, float g, float b, float a)
{
}
void Material::Loader::specular(float r, float g, float b, float a)
{
- obj.specular = GL::Color(r, g, b, a);
+ obj.set_specular(GL::Color(r, g, b, a));
}
void Material::Loader::emission(float r, float g, float b, float a)
{
}
void Material::Loader::emission(float r, float g, float b, float a)
{
- obj.emission = GL::Color(r, g, b, a);
+ obj.set_emission(GL::Color(r, g, b, a));
+}
+
+void Material::Loader::shininess(float s)
+{
+ obj.set_shininess(s);