fart/main/Lighting.cc
Josh Holtrop 8677680577 added main/Lighting module, added operator-() to util/Vector, added m_shininess to main/Light
git-svn-id: svn://anubis/fart/trunk@71 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-01-30 20:28:05 +00:00

20 lines
589 B
C++

#include "Lighting.h"
Color Lighting::computePhong(const Material & material,
const std::vector<Light *> & lights,
const Ray & viewRay,
const Vector & surfacePoint,
const Vector & surfaceNormal,
const Color & ambientLight)
{
Color result = ambientLight;
Vector V = -viewRay.getDirection();
for (std::vector<Light *>::const_iterator it = lights.begin();
it != lights.end();
it++)
{
}
return result;
}