added the_Color to Node, material gathering AMBIENT, DIFFUSE, SPECULAR color values

git-svn-id: svn://anubis/fart/trunk@103 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2009-02-12 03:07:22 +00:00
1 parent 8a112009a6
commit c136bda827
6 files changed
+83 -10

No files matched your search

+2 -1
View File
@@ -7,5 +7,6 @@ Material::Material()
{
m_diffuse_color = Color::white;
m_specular_color = Color::white;
m_shininess = 50;
m_shininess = 50.0;
m_reflectance = 0.0;
}
+4
View File
@@ -33,11 +33,15 @@ class Material
void setShininess(double shininess) { m_shininess = shininess; }
double getShininess() const { return m_shininess; }
void setReflectance(double reflectance) { m_reflectance = reflectance; }
double getReflectance() const { return m_reflectance; }
protected:
Color m_ambient_color;
Color m_diffuse_color;
Color m_specular_color;
double m_shininess;
double m_reflectance;
};
#endif