fixed Lighting to ignore dot products less than 0 for diffuse coefficients; this broke shapes/Subtract again. fixed Material::white to be assigned to by Material() as evidently it was not calling the constructor properly otherwise. added initializer in Material::Material() to set ambient color to white. Scene constructing PointLight instead of a raw Light when loading from a file

git-svn-id: svn://anubis/fart/trunk@173 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2009-03-01 23:50:53 +00:00
1 parent adf7997417
commit 6a649ecac7
3 files changed
+17 -7

No files matched your search

+2 -1
View File
@@ -1,10 +1,11 @@
#include "Material.h"
const Material Material::white;
const Material Material::white = Material();
Material::Material()
{
m_ambient_color = Color::white;
m_diffuse_color = Color::white;
m_specular_color = Color::white;
m_shininess = 50.0;