cloudy-raytracer/shader/simpleshadowshader.cpp

13 lines
435 B
C++
Raw Normal View History

2022-11-11 14:39:48 +01:00
#include "light/light.h"
#include "scene/scene.h"
#include "shader/simpleshadowshader.h"
SimpleShadowShader::SimpleShadowShader(Color const &objectColor) : objectColor(objectColor) {}
Color SimpleShadowShader::shade(Scene const &scene, Ray const &ray) const {
// IMPLEMENT ME
// loop over all light sources to check for visibility and multiply "light
// strength" with this objects albedo (color)
2022-11-17 17:07:18 +01:00
return this->objectColor;
2022-11-11 14:39:48 +01:00
}