cloudy-raytracer/light/ambientlight.cpp
2022-11-25 14:57:39 +01:00

5 lines
179 B
C++

#include "light/ambientlight.h"
Light::Illumination AmbientLight::illuminate(Scene const &scene, Ray const &ray) const {
return {this->color * this->intensity, -ray.normal};
}