20 lines
589 B
C++
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;
|
|
}
|