cloudy-raytracer/light/ambientlight.cpp

6 lines
182 B
C++
Raw Normal View History

2022-11-25 14:57:39 +01:00
#include "light/ambientlight.h"
Light::Illumination AmbientLight::illuminate(Scene const &scene, Ray const &ray) const {
return {this->color * this->intensity, -ray.normal, 0};
2022-11-25 14:57:39 +01:00
}