TODO: what does this (apparently) random conditional do?

This commit is contained in:
Eryn Wells 2014-08-02 15:32:27 -07:00
parent 8ea832c090
commit 5390600cdd

View file

@ -263,6 +263,10 @@ Scene::trace_ray(const Ray &ray,
light_direction = (intersection - l->GetOrigin()).normalize();
ldotn = light_direction.dot(normal);
/*
* TODO: What is this even for? Removing it makes the darker showers
* really bright.
*/
if (ldotn < 0) {
ldotn = 0.0;
}