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